Skip to content

Commit

Permalink
Adding mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
vivverma9 committed Sep 3, 2024
1 parent 37a3340 commit 9a82bcb
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish documents
on:
push:
branches:
-data_model
jobs:
build:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: Tiryoh/actions-mkdocs@v0
with:
mkdocs_version: 'latest'
requirements: 'docs_requirements.txt'
configfile: 'mkdocs.yml'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
15 changes: 15 additions & 0 deletions docs_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
fontawesome_markdown
json5
jsonschema
Markdown
markdown-it-py
mike
mkdocs
mkdocs-autorefs
mkdocs-awesome-pages-plugin
mkdocs-jupyter
mkdocs-material
mkdocs-material-extensions
mkdocstrings
mkdocstrings-python
mkdocs-table-reader-plugin
83 changes: 83 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
site_name: "SANDAG Rapid Strategic Model"
site_url: https://sandag.github.io/rsm
repo_url: https://github.com/SANDAG/RSM

use_directory_urls: false

theme:
name: material
features:
- navigation.tabs
- content.code.annotate
- content.tabs.link
- navigation.indexes
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: deep purple
accent: deep orange
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: deep purple
accent: grey
toggle:
icon: material/toggle-switch
name: Switch to light mode

plugins:
- autorefs
- mike
- mkdocs-jupyter:
include_source: True
- mkdocstrings:
default_handler: python
enable_inventory: true
handlers:
rendering:
show_root_heading: false
show_source: true
heading_level: 3
custom_templates: templates
- search
- table-reader

nav:
- Home: index.md
- Development: development.md
- Assessment: assessment.md
- User Guide: userguide.md
- Visualizer: visualizer.md
- API: api.md

extra:
version:
provider: mike
default: latest

extra_css:
- https://use.fontawesome.com/releases/v5.13.0/css/all.css

markdown_extensions:
- admonition
- codehilite:
linenums: true
- meta
- pymdownx.inlinehilite
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.smartsymbols
- smarty
- tables
- toc:
# insert a blank space before the character
permalink: ""
- pymdownx.critic
- pymdownx.caret
- pymdownx.keys
- pymdownx.mark
- pymdownx.tilde

0 comments on commit 9a82bcb

Please sign in to comment.