Skip to content

Commit

Permalink
fix: move mkdocs_basic.yml into resources
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 18, 2023
1 parent 091b5fe commit 01546d0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configs/mkdocs_mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INHERIT: mkdocs_basic.yml
INHERIT: ../mkdocs_mknodes/resources/mkdocs_basic.yml

site_name: MkDocs
site_description: A MkDocs page created by MkNodes
Expand Down
4 changes: 2 additions & 2 deletions configs/mkdocs_mkdocstrings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INHERIT: mkdocs_basic.yml
INHERIT: ../mkdocs_mknodes/resources/mkdocs_basic.yml

site_name: MkDocstrings
site_description: A MkDocstrings page created by MkNodes
Expand All @@ -7,8 +7,8 @@ site_url: https://phil65.github.io/mknodes/mkdocstrings/
plugins:
- mknodes:
repo_path: https://github.com/mkdocstrings/mkdocstrings.git
build_fn: mknodes.navs.mkemptywebsite:MkEmptyWebsite.for_project
clone_depth: 100
build_fn: mknodes.navs.mkemptywebsite:MkEmptyWebsite.for_project
kwargs:
static_pages:
Development:
Expand Down
2 changes: 1 addition & 1 deletion configs/mkdocs_multipage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INHERIT: mkdocs_basic.yml
INHERIT: ../mkdocs_mknodes/resources/mkdocs_basic.yml

plugins:
- mknodes:
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_mknodes/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

SRC_FOLDER = pathlib.Path(__file__).parent
RESOURCES = SRC_FOLDER / "resources"
CFG_DEFAULT = SRC_FOLDER.parent / "configs/mkdocs_basic.yml"
CFG_DEFAULT = RESOURCES / "mkdocs_basic.yml"
DEFAULT_BUILD_FN = "mknodes:MkDefaultWebsite.for_project"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ site_dir: ../site
theme:
name: material
custom_dir: ../overrides
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- announce.dismiss
- navigation.tabs # make top level tabs
Expand Down

0 comments on commit 01546d0

Please sign in to comment.