User docs for Qleet hosted Threeport service.
Prerequisistes:
Run the server locally:
mkdocs serveView the site at http://127.0.0.1:8000
Run release target
make release$ make
Usage: make COMMAND
Commands :
help - List available tasks
deps - Install dependencies
run - Run mkdocs
stop - Stop mkdocs
release - Create and push a new tag
version - Print current version(tag)
In order to have the open source Threeport user docs nested in the Qleet docs we do the following:
- Keep the upstream Threeport docs as a git submodule of Qleet docs
- Use a merge tool to add the Threeport docs into the Qleet docs. The source
code for this tool is in the
threeport-mergedirectory.
The threeport-merge tool does the following:
- Copies all Threeport markdown docs into the
docs/threeportdirectory. - Copies all images from Threeport docs into the
docs/img/threeportdirectory. - Updates all instances of
tptctlin markdown docs withqleetctl. - Updates all paths to images in markdown docs to point to its new home in Qleet docs.
- Updates the
.navin Qleet'smkdocs.ymlconfig to include the Threeport docs.navwith updated paths to markdown docs. - Removes any files found in the threeport-merge config file under
.exclude.
Sample config:
exclude:
- docs/threeport/guides/getting-started.md
- docs/threeport/guides/install-tptctl.md
- docs/threeport/guides/install-threeport-local.md
- docs/threeport/guides/install-threeport-aws.md
- docs/threeport/guides/deploy-workload-local.mdIf there are any documents in the Threeport user docs that aren't appropriate in
Qleet user docs and should be excluded, add the path to the .exclude list and
they will be omitted. The path provided must be the path to the Threeport
document in the Qleet docs where it is found post-merge, i.e. the path to the
document in the docs/threeport directory after threeport-merge is run.
If there are changes in Threeport docs that need to be pulled into the Threeport user-docs submodule, first pull those changes.
git submodule update --remoteThen run threeport-merge with a make target.
make threeport-mergeThis make target will:
- Build threeport-merge from source.
- Run threeport-merge and reference the
threeport-merge/merge-config.yamlconfig.