Documentation Site
Ce contenu n'est pas disponible en français
This page “documents” this “documentation site” itself.
The repo of this doc site is here and it’s open to contribution.
Development
Section titled “Development”Currently, this project is based on Starlight, which is based on Astro.
The website is hosted on GitHub Pages using a workflow for GitHub Actions.
The workflow is triggered when a push involves changing under following paths:
src/public/
It can also be triggered manually.
Run Locally
Section titled “Run Locally”| Command | Action |
|---|---|
npm install | Installs dependencies |
npm run dev | Starts local dev server at localhost:4321 |
npm run build | Build your production site to ./dist/ |
npm run preview | Preview your build locally, before deploying |
npm run astro ... | Run CLI commands like astro add, astro check |
npm run astro -- --help | Get help using the Astro CLI |
How to
Section titled “How to”Edit/add pages
Section titled “Edit/add pages”Edit markdown files under src/content/docs/en/ .
- Update the value of
lastUpdatedin frontmatter manually, e.g.lastUpdated: 2024-02-10.- When publishing this site by GitHub Action, this value is used by
l10n-notifyto determine whether a translated version is outdated. - If you think your update on the original page does not make the translated page out of sync, such as typo or grammar fix which only involes the natural language part of the original page, then it’s OK to skip this step.
- When publishing this site by GitHub Action, this value is used by
- Somehow different to the markdown on GitHub. Reference.
-
Publish HTML files: Put it under
src/pages. -
Edit sidebar: Edit
astro.config.mjs. -
Edit theme: Edit
src/styles/custom.css(Reference). -
Edit homepage: Edit
src/content/docs/en/index.mdx
References
Section titled “References”History
Section titled “History”This doc site started from dots-hyprland#246 and was then initialized mainly by @clsty with contents from the README and built-in wiki of dots-hyprland and the README of dots-hyprarch.