Documentation Quick Reference¶
Quick reference for working with FinWiz documentation.
Commands¶
Bash
# Preview documentation locally
make docs-serve
# Lint markdown files
make docs-lint
# Validate structure and links
make docs-validate
# Clean build artifacts
make docs-clean
Local Preview¶
With Jekyll (recommended)¶
With Python¶
File Organization¶
Text Only
docs/
├── index.md # Homepage
├── tutorials/ # Learning guides
├── how-to/ # Problem-solving
├── reference/ # Technical docs
└── explanations/ # Concepts
Adding Documentation¶
1. Create Markdown File¶
Bash
# Choose the right category
docs/tutorials/my-tutorial.md
docs/how-to/my-guide.md
docs/reference/my-api.md
docs/explanations/my-concept.md
2. Add Front Matter¶
3. Link from Index¶
Update docs/index.md to link to your new page.
Writing Guidelines¶
Diátaxis Framework¶
- Tutorials: Step-by-step lessons ("How to get started")
- How-To: Problem-solving guides ("How to configure X")
- Reference: Technical specifications ("API documentation")
- Explanations: Concepts and discussions ("Why we use X")
Markdown Best Practices¶
Markdown
# Use ATX-style headers
- Use hyphens for lists
- Not asterisks
Use `backticks` for inline code
```python
# Use fenced code blocks
def hello():
print("World")
Text Only
## Links
### Internal Links (Relative)
```markdown
[Developer Guide](DEVELOPER_GUIDE.md)
[Tutorial](tutorials/getting_started.md)
[Reference](reference/API_REFERENCE.md)
External Links¶
GitHub Pages¶
Enable Pages¶
- Settings → Pages
- Source: Deploy from branch
- Branch:
main, Folder:/docs - Save
Check Deployment¶
- Actions tab → See build progress
- Environments → Deployment history
- Visit:
https://[username].github.io/finwiz
Validation¶
Before Commit¶
Bash
# Check markdown style
make docs-lint
# Validate structure
make docs-validate
# Preview changes
make docs-serve
CI/CD¶
- Automatic validation on push
- Check Actions tab for status
- Fix any errors before merging
Common Issues¶
404 Errors¶
- Check file paths are correct
- Ensure case sensitivity matches
- Use relative links without leading
/
Styling Issues¶
- Test locally with Jekyll
- Add custom CSS if needed
- Keep styling simple
Build Failures¶
- Check Actions tab for errors
- Validate YAML front matter
- Ensure all links are valid
Resources¶
- Setup Guide - Detailed setup instructions
- Developer Guide - Development guidelines
- GitHub Pages Docs
- Diátaxis Framework