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

Documentation #2

Open
luiarthur opened this issue Jan 14, 2025 · 0 comments
Open

Documentation #2

luiarthur opened this issue Jan 14, 2025 · 0 comments

Comments

@luiarthur
Copy link
Collaborator

To maintain separate documentation for different versions of your project using pdoc, consider the following approach:

  1. Generate Documentation for Each Version:

For each version of your project, generate the documentation and output it to a version-specific directory.

# For version 1.0
pdoc --html --output-dir docs/v1.0 my_package

# For version 2.0
pdoc --html --output-dir docs/v2.0 my_package
  1. Organize Documentation Directories:

Structure your docs directory to include subdirectories for each version:

docs/
├── v1.0/
├── v2.0/
└── index.html
  1. Automate Documentation Generation:

Implement a script or continuous integration (CI) pipeline to automate the generation and updating of documentation for each version.

  1. Serve Documentation:

Host the docs directory on a web server or a static site hosting service to provide access to the documentation.

Additional Considerations:
Version Navigation: Ensure that each version's documentation includes clear navigation links to other versions.

Consistency: Maintain a consistent structure across all versions to facilitate user navigation.
By following this approach, you can effectively manage and present documentation for multiple versions of your project using pdoc.

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