Components
Workflow
Build your docs
$ folio build
✓ Pages generated✓ Search indexedReady in _site/docs.yaml
project:
name: Atlas
output: _site- output
- Where your site is written.
default: _site
Your published site
_site/HTMLStatic pages
llms.txtTextContext for agents
Preview locally
folio serveRebuild as you write.
--port--cleanSource
docs/
index.mdPublished
_site/
index.html- OK
Write your first guide
- OK
Preview the site
- TODO
Publish when ready
Build lifecycle
- 1
Configure
configureRead project settings
- 2
Collect
collectGather documents
Interactive
Yes. Register a React component in docs.yaml.
Any host that serves static files.
curl -fsSL https://raw.githubusercontent.com/pguijas/folioh/main/install.sh | shfolio buildInitialize
Start with your source files.
Build
Turn them into a documentation site.
TodayNew
First release
Your documentation is live.
Yesterday
First build
A guide and an API reference.
def greet(name):
return f"Hello, {name}"fn greet(name: &str) {
println!("Hello, {name}");
}Make it yours
Use components inside any MDX page.
<Callout type="tip" title="Make it yours">
Use components inside any MDX page.
</Callout>folio buildDisplay
A little guidance
Keep the useful detail close to the example.
Before you publish
Check your internal links.
atlas
├── docs
│ ├── index.md
│ └── quickstart.md
└── docs.yaml
Generated documentation
atlas.dev/docs
Welcome to Atlas
Your documentation, in context.
flowchart LR A[Source] --> B[Build] B --> C[Your site]
pythongreet.py
def greet(name: str) -> str:
"""Say hello."""
return f"Hello, {name}"12
Guides
3
Languages
Write once. Read everywhere.
| Basic | Extended | |
|---|---|---|
| Guides | ||
| API reference | — |
SWOT
S
Strengths
Static output
W
Weaknesses
Build step
O
Opportunities
New readers
T
Threats
Stale guides
Prose
API Reference
| Name | Type | Default | Description |
|---|---|---|---|
| path | str | - | Source directory |
Returns str or None
Deprecatedsince 2.0
Use the unified build command.
Use build() instead.
Theme
Available in the site header
Available in the site header