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

Version a subdirectory of the site? #158

Closed
sdruskat opened this issue Jun 7, 2023 · 2 comments
Closed

Version a subdirectory of the site? #158

sdruskat opened this issue Jun 7, 2023 · 2 comments

Comments

@sdruskat
Copy link

sdruskat commented Jun 7, 2023

Hi, and thanks for this helpful tool.

Making my first steps using mkdocs, Material for MkDocs, and mike.

I'm wondering if the following is possible, which I think isn't covered by --prefix?

  • Have an unversioned site built with Material for MkDocs, and
  • version only a part of the site, e.g., content that lives in docs/versioned-docs or similar.

I can think of a hack where the versioned content lives in another repo which is hardlinked to from the non-versioned content (e.g., from an org-level GH Pages), but was wondering if this is (or potentially can be) supported "natively" by mike.

@jimporter
Copy link
Owner

That's probably possible with --prefix if you also create a safe way of separately deploying your unversioned docs as a different MkDocs deployment. However, I'd recommend just versioning everything; it's simpler that way.

@jimporter jimporter closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2023
@sdruskat
Copy link
Author

Thanks, you're right, it's easier to version everything.

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

2 participants