Quick introduction to the project.
Stellar is documentation theme for Astro.js.
The main purpose of this project is to give framework and library creators and maintainers a docs template they can use so they can focus more on writing the docs (markdown files), rather than setting up the whole docs project.
public/
- Static assets that will not be
processed by Astro
components/
- All components used in projecti18n/sidebar.ts
- Inside this file is defined SIDEBAR
object which is
used for displaying sidebar links inside
src/components/sidebar/SidebarLinks.astro
i18n/ui.ts
- Used for defining all languages which docs should be
translated to, and translations for ui
layouts/
- All layouts used in projectpages/
- Inside pages you should have index.astro
(landing page for
DEFAULT_LANGUAGE
in config.ts
) and lang.astro
for every other language defined in
LANGUAGES
inside src/i18n/ui.ts
Inside pages you will also place your markdown files inside each lang folder.
styling/
- Used for defining external stylesheetsconfig.ts
- Used for configuring the whole projecttypes.ts
- Used for defining commonly used types.eslintrc.cjs
- Eslint config file.prettierignore
- In this file enter all directoriums or files you don’t wanna get linted and formatted by default.prettierrc.cjs
- Prettier config fileastro.config.mjs
- Astro config filetailwind.config.mjs
- Tailwind config filetsconfig.json
- Typescript config fileCommand | 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 format | Formats the whole project |
npm run lint | Lints the whole project |
npm run typecheck | Checks is there any type errors |
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 |