Repository navigation
Commit bf16b64
authored
feat(site): publish only the core docs for now (#19)
* feat(site): name the docset in the version picker label
The picker label reads "OpenShell version" or "Go SDK version" instead of "Version", so it's clear which docset the picker switches.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* fix(site): link the GitHub icon to the ai-openshell organization
The docs header linked to the docs repository. The GitHub organization covers the core repository, the SDKs, and the docs.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): add a community page written in Markdown
Pages outside the docs can now be Markdown files in www/. scripts/website.mjs renders each www/<name>.md into the landing page's header and footer at /<name>/ and publishes its Markdown copy at /<name>.md. The landing page stays hand-written HTML.
The first page, /community/, links the CNCF Slack channel and the GitHub organization. The landing header links to it, and its GitHub icon now points to the organization.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* docs: describe website pages, Markdown for agents, and hosting
Covers adding Markdown pages, the .md copies and llms.txt the site publishes for agents, and hosting on Netlify under the CNCF account.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): share one header between the landing page and the docs
The docs header now has the same site bar as the landing page: the wordmark and the Docs and Community links on the left, then search (docs only), GitHub, and a light/dark toggle. Both read their links and the GitHub URL from theme/nav.json, so a new page needs one entry. The docs toggle replaces Starlight's theme select in the header and keeps the mobile menu's select in sync.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* docs: drop release numbers from the README
The docset table listed each published release and went stale with every release. It now names each docset's dev branch; sources.yml is the list of releases.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): link the docs wordmark home and set the site links apart
The OpenShell wordmark in the docs header now goes to the landing page at / instead of the docs home. The Docs and Community links use the body text color at a slightly larger size, sit after a divider further from the wordmark, and turn the accent color on hover and for the current section.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* fix(site): link the #openshell-dev Slack channel
The community page now links the channel directly and keeps slack.cncf.io for people without a CNCF Slack account.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): share an auto/light/dark theme toggle between the landing page and the docs
theme/theme-toggle.html and theme-toggle.js hold one toggle that both headers use. Each click cycles auto, light, dark; auto follows the system setting. The choice is stored where Starlight keeps it, so it carries between the landing page and the docs and the docs mobile menu's theme select stays in sync. Both headers now show the same icons, including one for auto.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): separate the site bar from the docs tabs with a line
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): search the docs and the website pages from every page
scripts/website.mjs indexes the Markdown pages with Pagefind into /pagefind-www/. The docs search merges that index when built with WEBSITE=1 (set on Netlify and by mise run website), and the landing and community pages get a search button and dialog (www/search.js) that use the docs index plus the same merged index, with Starlight's ranking. Website pages count half so a short page doesn't outrank the docs on a common term.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): organize the community page like OpenTelemetry's, with icons
The Chat section becomes a Develop and contribute section: the contributing guide, then GitHub and the #openshell-dev Slack channel, with a pointer to the #openshell-* subproject channels and slack.cncf.io. Markdown pages can now use :name: shortcodes for icons in www/icons/; the GitHub and Slack logos come from Starlight's icon set and are excluded from the SPDX check as third-party artwork.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* fix(site): keep the header from shifting between the landing page and the docs
The docs header's site bar shrank by a fraction of a pixel to fit Starlight's header border, so the wordmark sat slightly higher than on the landing page. It now keeps its full height. The landing header also uses the docs' side padding, link spacing, and search breakpoints, so the wordmark, links, and search stay in place at every width.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): drop the arrow from the landing page's Documentation button
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): share one site bar and search between the docs and the website
theme/site-bar.mjs renders the site bar (wordmark, site links, search, GitHub, theme toggle) and the search dialog for every page, with one stylesheet (theme/site-bar.css) and one search script (theme/search.js). The docs header and scripts/website.mjs both use it, so the bar can no longer drift between the docs and the landing and community pages. The docs now use this search instead of Starlight's search box; Starlight still builds the Pagefind index.
Search changes:
- Whole result rows are clickable, with one row per page and per section, all the same width.
- Each result shows where it comes from (Core, Go SDK, SDKs, Community), from Pagefind metadata set on every page.
- Page icons, tighter spacing, arrow-key navigation, a link-style Clear, and an X that closes the dialog (Esc too).
- The dialog uses the site's type scale: a regular-weight query, semibold titles, and 14px excerpts.
The community page title now matches docs page titles.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* docs: keep the README to an overview and move build details to CONTRIBUTING
The README now covers what the repository builds, how it works in brief, publishing a release, and running the website locally. CONTRIBUTING.md gains the build, website pages, site bar and search, Markdown for agents, and hosting details.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): publish only the core docs for now
The Go SDK is the only SDK that publishes its own docs, so an SDKs section that lists only Go is confusing. The site now builds only the core docs: sources.yml drops the SDKs topic and the sdk-go source, and topics/sdks.mdx goes. The header shows the topic tabs only when there are several topics, so with one topic the docs have just the site bar.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): open links to other sites in a new tab on the website pages
On the Markdown pages, such as /community/, links to other sites (GitHub, Slack, the CNCF) get target="_blank" rel="noopener".
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* refactor(site): rename www/ to website/
website/ says what the folder holds: the website's own pages outside the docs (the landing page, the community page, their styles and icons). It matches scripts/website.mjs and the website tasks. The website pages' search index moves from /pagefind-www/ to /pagefind-website/ to match, and README and CONTRIBUTING say what website/ holds next to site/.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
* feat(site): underline the current site link
Hover and the current section looked the same. Hover now only changes the link color; the current section (Docs or Community) also gets an accent underline.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
---------
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>1 parent 58ea8a3 commit bf16b64
6 files changed
Lines changed: 17 additions & 34 deletions
File tree
- site/src
- components/overrides
- styles
- topics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
This file was deleted.
0 commit comments