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

Choose a subfolder of an imported repository #141

Open
mark-blundell opened this issue Feb 20, 2024 · 0 comments
Open

Choose a subfolder of an imported repository #141

mark-blundell opened this issue Feb 20, 2024 · 0 comments

Comments

@mark-blundell
Copy link

mark-blundell commented Feb 20, 2024

Hi,

This is my first issue so first of all I'd like to say thank you for the plugin. Our project wouldn't be possible without it :)
At the moment I am using the "nav_repo" option and would like to only import a specific subfolder and its contents of the imported repository. I understand that I can choose that folder with "imports" but I would like that subfolder to be the root folder for the URL. All the imported repos contain a subfolder with the user documentation "docs/user" and I only want to use that folder.

At the moment it looks something like this:

nav_repos:
      - name: product1
        import_url: <url>?branch=docs-v1.1
        imports: [
          /docs/user/index.md
          ]

nav:

- 'Introduction to product1': 'product1/docs/user/index.md'

But I would like it to look something like this:

nav_repos:
      - name: product1
        import_url: <url>?branch=docs-v1.1&<parameter for subfolder>
        imports: [
          /index.md
          ]

nav:

- 'Introduction to product1': 'product1/index.md'

Would this be possible in some way?

Thanks in advance,
Mark

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