Repository navigation
docs(ui): readable tables and a clear "On this page" menu at every width; link the Python docs - #511
Conversation
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
4c2c9a3 to
30f0a62
Compare
… fail Documentation Validation - postgres.adoc: <<Column type mapping,...>> pointed at a section title; the section gets [[postgres-column-type-mapping]]. - settings.adoc: <<_a_statement_that_fails_halfway>> relied on the generated id; the section in transactions.adoc gets [[statement-fails-halfway]]. - sql/chapter.adoc: <<vector-neighbours,...>> -> the anchor is vector-neighbors. - sql-functions.adoc: [[cchShortestPath]] and [[duanSSSP]] -> cch-shortest-path and duan-sssp (lowercase with hyphens), with the three references updated. docs-validator.py passes locally (it failed on main with these five). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iteral monospace The "Validate HTML output" step (html5validator on the single-page build, target/generated-docs/index.html) failed with 21 errors, on main as well. Asciidoctor applies strong, emphasis, mark and subscript before monospace, so a pair of `*` (or `_`, `#`, `~`) in two different backtick spans pairs up across them: `wal.group.*` and `commit.lock.*` rendered as <code>wal.group.<strong></code> and <code>commit.lock.</strong></code>, which is a stray "code" end tag, and `=~`/`!~` and `#` did the same with sub and mark. `file://exports/<file-name>` was turned into a bare link with an illegal href. The same markup renders the live pages wrong (bold running over the text between two code spans), so the fix is in the sources. Each affected span is now `+...+` literal monospace, the form sql-projections.adoc already used. Only spans in the paragraphs that rendered wrongly changed. Checked by rendering index.adoc with Asciidoctor 3 and scanning for misnested code/strong/em/mark/sub tags (80 before, 0 after); the real html5validator run is the CI step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main moved by about 130 commits; two new things would fail the same two CI steps again. The anchor [[util-validatePredicate]] (utility.adoc) is renamed util-validate-predicate, the lowercase-with-hyphens form the validator requires (nothing refers to it). In redis.adoc, `*1\r\n:1\r\n` and `'*'` paired as strong across the two code spans, giving a stray "code" end tag in the single-page build; both are literal monospace now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, at every width; link the Python docs - Right TOC: the aside and the menu both drew the left rule and the links started 1px from it; now one rule on the menu and 0.75rem before the links. - Tables: as wide as the content needs up to the content column, scrolling sideways beyond it (display:block, width:max-content, max-width:100%, overflow-x:auto) instead of splitting words; no automatic hyphenation; inline code no longer word-break:break-all (still overflow-wrap:anywhere for long setting names); 12px cell padding; at <= 768px a minimum column width so tables scroll instead of squeezing. - python-embedded page: link the arcadedb-python component, now published on this site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30f0a62 to
931c4ca
Compare
|
Rebased on #515 (both green now; until #515 is merged this diff also shows its three commits, and one rebase on Measured locally to check the change does what it says: a build of this branch against a build of #515 (that is
At phone width the narrowest column goes from about 45 px to 128 px and the wide tables scroll sideways instead of squeezing every column to a few characters; above 768 px nothing changes. The "On this page" menu now has one rule line with room before the links. Ready for review whenever you have a moment; happy to adjust the 7.5rem minimum if you prefer another value. |
…eading width Measured on a local build in frames of exact device widths: at 360 and 393 px the cells over 8 lines drop from 33 to 24 (which-package), 32 to 19 (http) and 62 to 47 (timeseries), and the longest cell from 27 to 15 and 69 to 31 lines; the table scrolls sideways instead (GitHub's pattern). Tablet and wider are unchanged by this rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
One more commit ( Measured again on local builds of this branch and of
Phones gain the most (on the time-series page the cells over 8 lines drop from 146 to 47 at 360 px). One cost to know about: on the time-series page, one table now scrolls sideways from tablet to laptop width and has three more tall cells, because words are no longer broken in the middle. The Z Fold 7 open width (880 px) is an approximation. |
|
@claude review this |
docs(ui): dark mode that follows the system setting, a theme toggle, and accessibility fixes (stacked on #511)
|
Awesome, thanks |
Two layout problems on docs.arcadedb.com, visible at most widths, plus a link update now that the Python docs are on the site (#505).
1. "On this page" menu.
aside.toc.sidebarand.toc-menuboth drew the left rule, and the links started 1px from it, so the text sat on the line. Now there is one rule, on the menu, with 0.75rem before the links.2. Tables. To keep long setting names from running under the right sidebar, cells had
overflow-wrap: anywhereand inline codeword-break: break-all. That lets the browser shrink a column to almost nothing, so on narrow columns words split mid-word ("Pack-age", "arca-dedb",pip install arca-dedb), and on a phone a 4-column table degraded to one letter per line. This PR keeps the sidebar safe without breaking words:display: block; width: max-content; max-width: 100%; overflow-x: auto, the pattern GitHub uses for markdown tables);overflow-wrap: break-word,word-break: normal,hyphens: manual); long inline code may still wrap anywhere;Checked by injecting the rules into the live pages in Chrome and measuring, at widths 360, 390, 768, 984, 1280 and 1920, all 11 pages of the
arcadedb-pythoncomponent plusreference/settings: no page overflows horizontally, and no element of the article reaches under the right sidebar outside a scroll container. Onreference/settingsat 1280, every table stays inside the content column, and the one whose content is wider scrolls sideways (withbreak-wordalone, without the scroll container, it reached 1146px against a column ending at 1013px). With 12px padding the concurrency page's 7- and 8-column tables fit at 1280 without scrolling. Tables narrower than the column now take their natural width instead of being stretched; on the pages checked, most still fill about 95% of it.3.
how-to/connectivity/python-embeddedsaid the repository holds the full guides; it now links the guides at https://docs.arcadedb.com/arcadedb-python/ and keeps the repository link for the source, examples and issues.