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

Import the content of multiple files (incl. ones from external repos) into one file #140

Open
nihalshah-dev opened this issue Feb 20, 2024 · 0 comments

Comments

@nihalshah-dev
Copy link

nihalshah-dev commented Feb 20, 2024

Hi everyone,

Summary:
From what i understand from multi-repo plugin we can import docs using !import statement as well.
Like this -

nav:
  - Home: 'index.md'
  - MicroService: '!import {url}?branch={branch}&docs_dir={path}&multi_docs={True|False}&config={filename}.yml&keep_docs_dir={True|False}'

Here we are trying to import only one url. The !import statement is designed to import documentation from a single URL.

Proposal Details:
Can the plugin handle the inclusion of content from multiple URLs within a single !import statement.

Like this -

nav:
 - Home: 'index.md'
 - MicroService: '!import {url1, url2, url3}?branch={branch}&docs_dir={path}&multi_docs={True|False}&config={filename}.yml&keep_docs_dir={True|False}'

Instead of -

nav:
  - Home: 'index.md'
  - MicroService:
    - '!import {url1}?branch={branch}&docs_dir={path1}&multi_docs=True&config={filename1}.yml&keep_docs_dir=True'
    - '!import {url2}?branch={branch}&docs_dir={path2}&multi_docs=True&config={filename2}.yml&keep_docs_dir=True'
    - '!import {url3}?branch={branch}&docs_dir={path3}&multi_docs=True&config={filename2}.yml&keep_docs_dir=True'

It will be really cool if i could use only one import statement instead of multiple and just extract the content from multiple repos (including ones from external repos)

Is this possible using multi-repo plugin? Really appreciate for any help here. Thanks!

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