-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support index.md auto-discovery in repo namespace
- Loading branch information
Showing
7 changed files
with
93 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Overview | ||
|
||
## What it is | ||
|
||
`pulp-docs` is a tool for serving and building an unified doc out of Pulp's Plugin Ecosystem. | ||
|
||
The idea is that each repository should install `pulp-docs` and imediatelly be able run the unified website server. | ||
Also, this should be used for the production build. | ||
|
||
It was developed as part of [The new Pulp "Unified Docs"](https://hackmd.io/eE3kG8qhT9eohRYbtooNww?view) project. | ||
|
||
## How it works | ||
|
||
Through a `mkdocs-macro-plugin` hook (called in early stages of mkdocs processing), we inject the following steps: | ||
|
||
1. Read [`repolist.yml`](https://github.com/pedro-psb/pulp-docs/blob/main/src/pulp_docs/data/repolist.yml) packaged with `pulp-docs` to know which repos/urls to use | ||
1. Download and Place all source code required to dir under `tempfile.gettempdir()` | ||
- Uses `../{repo}` if available OR | ||
- Uses existing cached `{tmpdir}/{repo}` if available OR | ||
- Downloads from github | ||
1. Configure `mkdocs` through a hook: fix `mkdocstrings` config, generate navigation structure, etc | ||
|
||
## Quickstart | ||
|
||
Recommended way for daily usage: | ||
|
||
=== "pipx" | ||
|
||
```bash | ||
pipx install git+https://github.com/pedro-psb/pulp-docs --include-deps | ||
pulp-docs serve | ||
``` | ||
|
||
=== "pip" | ||
|
||
```bash | ||
pip --user install git+https://github.com/pedro-psb/pulp-docs | ||
pulp-docs serve | ||
``` |
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.