-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from code0-tech/basic-preview-docs
Add basic preview docs
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Previewing locally | ||
--- | ||
|
||
The telescopium project can start a local preview for the documentation a project. | ||
|
||
This is done with the `project:preview` script which calls `scripts/docs_preview.js`. | ||
|
||
## Start local preview | ||
|
||
Requirements: | ||
|
||
- Dependencies of Telescopium are installed | ||
- The other project is cloned in the same parent directory as telescopium | ||
- The other project follows the [expected structure](structure.md) | ||
|
||
Run `npm run project:preview <project-name>` where `<project-name>` is replaced with | ||
the name of the directory which contains the project you want to preview. | ||
|
||
The preview relies on symbolic links. If symbolic links are not supported by your platform, | ||
you can't use the preview. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Directory Structure | ||
--- | ||
|
||
The telescopium project sets some expectations on projects that use it as documentation page. | ||
|
||
Requirements: | ||
|
||
- `docs/starlight.json` | ||
- `docs/content/` | ||
|
||
## `docs/starlight.json` | ||
|
||
This file contains the [starlight configuration](https://starlight.astro.build/reference/configuration/). | ||
|
||
## `docs/content/` | ||
|
||
This directory contains the actual documentation pages. It is configured as a content collection of | ||
documentation type. It can contain `*.md` and `*.mdx` files. Every page needs a `title` set in the | ||
front-matter configuration. |