Skip to content

Commit

Permalink
feat(docs): added mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Oct 24, 2023
1 parent e740204 commit 8505ae8
Show file tree
Hide file tree
Showing 6 changed files with 359 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Documentation
on:
push:
branches:
- main

jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions docs/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Help Page
92 changes: 92 additions & 0 deletions mkdocs-skaha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
site_name: Skaha API
site_url: https://chimefrb.github.io/skaha/
site_author: Shiny Brar
site_description: Python Client for Skaha Science Platform
repo_url: https://github.com/chimefrb/skaha/
repo_name: chimefrb/skaha
edit_uri: blob/main/docs/
copyright: Copyright © 2016 - 2023 CHIME/FRB Collaboration
remote_branch: gh-pages

theme:
name: material
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/toggle-switch
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode
font:
text: Roboto
code: Roboto Mono
language: en
icon:
repo: fontawesome/brands/github-alt
edit: material/pencil-box
view: material/eye-outline
features:
- tabs
- instant
- content.action.edit
- offline

plugins:
- search
- mkdocstrings
- git-revision-date-localized:
type: date
fallback_to_build_date: true

# Extensions
markdown_extensions:
- markdown.extensions.admonition
- markdown.extensions.attr_list
- markdown.extensions.def_list
- markdown.extensions.footnotes
- markdown.extensions.meta
- markdown.extensions.toc:
permalink: true
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight:
use_pygments: true
linenums_style: pymdownx.inline
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: squidfunk
repo: mkdocs-material
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences
- pymdownx.tabbed
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde

nav:
- Skaha: index.md
- Get Started: get-started.md
- Examples: examples.md
- API Reference:
- Session: session.md
- Images: images.md
- Context: context.md
- Client: client.md
87 changes: 86 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1 +1,86 @@
site_name: My Docs
site_name: Science Containers
site_url: https://opencadc.github.io/scicon/
site_author: CANFAR
site_description: Science Containers for CANFAR Science Platform
repo_url: https://github.com/opencadc/scicon/
repo_name: opencadc/scicon
edit_uri: blob/main/docs/
copyright: Copyright © 2023 CANFAR
remote_branch: gh-pages

theme:
name: material
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/toggle-switch
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode
font:
text: Roboto
code: Roboto Mono
language: en
icon:
repo: fontawesome/brands/github-alt
edit: material/pencil-box
view: material/eye-outline
features:
- tabs
- instant
- content.action.edit
- offline

plugins:
- search
- mkdocstrings
- git-revision-date-localized:
type: date
fallback_to_build_date: true

# Extensions
markdown_extensions:
- markdown.extensions.admonition
- markdown.extensions.attr_list
- markdown.extensions.def_list
- markdown.extensions.footnotes
- markdown.extensions.meta
- markdown.extensions.toc:
permalink: true
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight:
use_pygments: true
linenums_style: pymdownx.inline
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: squidfunk
repo: mkdocs-material
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences
- pymdownx.tabbed
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde

nav:
- Scicon: index.md
- Help Page: help.md
Loading

0 comments on commit 8505ae8

Please sign in to comment.