This is the official documentation site for YAML Schema, a powerful validation system for YAML documents. The site is built with Jekyll and uses the Just the Docs theme.
- Ruby 2.5 or higher
- RubyGems
- Bundler
-
Clone the repository
git clone https://github.com/yaml-schema/yaml-schema.github.io.git cd yaml-schema.github.io -
Install dependencies
bundle install
-
Start the development server
bundle exec jekyll serve -
View the site Open your browser and navigate to
http://localhost:4000
bundle exec jekyll buildThe built site will be in the _site directory.
yaml-schema.github.io/
├── _config.yml # Jekyll configuration
├── _layouts/ # Jekyll layouts
│ └── default.html # Main layout template
├── _includes/ # Jekyll includes
│ ├── title.html # Site title
│ ├── nav.html # Navigation menu
│ ├── breadcrumbs.html # Breadcrumb navigation
│ └── header_custom.html # Custom header content
├── docs/ # Documentation pages
│ ├── index.md # Documentation index
│ ├── installation.md # Installation guide
│ ├── basic-usage.md # Basic usage guide
│ ├── examples.md # Examples and use cases
│ └── faq.md # Frequently asked questions
├── index.md # Home page
├── Gemfile # Ruby dependencies
└── README.md # This file
The site uses the Just the Docs theme, which can be customized through the _config.yml file. Key configuration options include:
- Color scheme: Light or dark mode
- Search: Enable/disable search functionality
- Navigation: Customize navigation structure
- External links: Add links to external resources
- Create a new Markdown file in the appropriate directory
- Add front matter with metadata:
--- layout: default title: Your Page Title parent: Documentation # Optional: for nested navigation nav_order: 6 # Optional: for ordering ---
- Write your content in Markdown
The navigation is automatically generated based on:
- File location in the directory structure
- Front matter metadata (
parent,nav_order) - Page titles
- New documentation pages: Add Markdown files to the
docs/directory - Custom layouts: Create new layout files in
_layouts/ - Custom includes: Add reusable components in
_includes/ - Styling: Customize CSS by overriding theme styles
- Local testing: Use
bundle exec jekyll servefor local development - Link checking: Use tools like
htmlprooferto check for broken links - Build testing: Ensure the site builds correctly with
bundle exec jekyll build
- Use clear, concise language
- Include code examples where appropriate
- Follow the existing style and structure
- Use proper Markdown formatting
- Include front matter for proper navigation
- Use syntax highlighting for code blocks
- Include both YAML and Python examples
- Provide complete, runnable examples
- Add comments to explain complex code
- Store images in an
assets/directory - Use relative paths for internal links
- Optimize images for web use
- Include alt text for accessibility
This site is configured for GitHub Pages deployment:
- Push changes to the
mainbranch - GitHub Pages will automatically build and deploy the site
- The site will be available at
https://yaml-schema.github.io
For other hosting platforms:
- Build the site:
bundle exec jekyll build - Upload the contents of the
_sitedirectory to your web server
We welcome contributions! Here's how you can help:
- Report issues: Use the GitHub issue tracker
- Suggest improvements: Open feature requests
- Submit content: Create pull requests with documentation improvements
- Fix bugs: Submit patches for any issues you find
- Follow the existing code style and conventions
- Test your changes locally before submitting
- Include clear commit messages
- Update documentation as needed
This documentation site is licensed under the MIT License. See the LICENSE file for details.
- Live Site: https://yaml-schema.github.io
- GitHub Repository: https://github.com/yaml-schema/yaml-schema.github.io
- Just the Docs Theme: https://just-the-docs.github.io/just-the-docs/
- Jekyll: https://jekyllrb.com/
If you need help with the documentation site:
- Check the FAQ for common questions
- Open an issue on GitHub
- Contact the maintainers through GitHub discussions
Built with ❤️ using Jekyll and Just the Docs