Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpthong90 committed Jan 1, 2024
1 parent 23ab01b commit 846558c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
64 changes: 33 additions & 31 deletions docs/en/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: FastCRUDAPI
site_description: Easy way to generate crud apis for models.
site_url:
site_url: null
theme:
name: material
palette:
Expand Down Expand Up @@ -29,36 +29,38 @@ repo_name: lpthong90/fastcrudapi
repo_url: https://github.com/lpthong90/fastcrudapi
edit_uri: ''
nav:
- FastCRUDAPI: index.md
- Tutorial - User Guide:
- tutorial/index.md
- tutorial/first-step.md
- tutorial/sqlalchemy.md
- tutorial/sqlmodel.md
- tutorial/customize.md
- Help FastCRUDAPI - Get Help: help.md

- FastCRUDAPI: index.md
- Tutorial - User Guide:
- tutorial/index.md
- tutorial/first-step.md
- tutorial/sqlalchemy.md
- tutorial/sqlmodel.md
- tutorial/customize.md
- Help FastCRUDAPI - Get Help: help.md
markdown_extensions:
- toc:
permalink: true
- markdown.extensions.codehilite:
guess_lang: false
- admonition
- codehilite
- extra
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format ''
- pymdownx.tabbed:
alternate_style: true
# - mdx_include

- toc:
permalink: true
- markdown.extensions.codehilite:
guess_lang: false
- admonition
- codehilite
- extra
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format ''
- pymdownx.tabbed:
alternate_style: true
extra_css:
- css/termynal.css
- css/custom.css

- css/termynal.css
- css/custom.css
extra_javascript:
- js/termynal.js
- js/custom.js
- js/termynal.js
- js/custom.js
extra:
alternate:
- link: /
name: en
- link: /vi/
name: vi
1 change: 1 addition & 0 deletions scripts/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def live(
def update_config() -> None:
config = get_en_config()
languages = [{"en": "/"}]
config["extra"] = config.get("extra", {})
alternate: List[Dict[str, str]] = config["extra"].get("alternate", [])
alternate_dict = {alt["link"]: alt["name"] for alt in alternate}
new_alternate: List[Dict[str, str]] = []
Expand Down

0 comments on commit 846558c

Please sign in to comment.