Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsite does not prefix its navigation #3

Open
HarryMichal opened this issue Feb 28, 2023 · 0 comments
Open

Subsite does not prefix its navigation #3

HarryMichal opened this issue Feb 28, 2023 · 0 comments

Comments

@HarryMichal
Copy link

Description of the problem

Subsites added to a documentation do not prepend base_path to the path of the documentation files. This causes problems when there are documentation files with the same file structure.

How to reproduce

File structure

├── bar/
|   ├── docs/
|   |  ├── index.md
|   ├── mkdocs.yaml
├── docs/
|   ├── index.md
├── mkdocs.yaml  

Main documentation (Foo)

mkdocs.yaml file contains:

site_name: Foo
plugins:
  subsite:
    sites:
      - base_path: Bar
        nav_path: Subdocumentation/Bar
nav:
  - Index: 'index.md'
  - Subdocumentation:
      - Bar: []

Sub documentation (Bar)

site_name: Bar
nav:
  - Index: 'index.md'

Current behaviour

Navigating to Index shows the index page of documentation Foo.
Navigating to Subdocumentation/Bar/Index shows the index page of documentation Foo.

Desired behaviour

Navigating to Index should show the index page of documentation Foo.
Navigating to Subdocumentation/Bar/Index should show the index page of documentation Bar.

@HarryMichal HarryMichal changed the title Subsite mutates the navigation Subsite does not prefix its navigation Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant