2019-11-04 23:22:32 +00:00
|
|
|
# Podman Documentation
|
|
|
|
|
|
|
|
The online man pages and other documents regarding Podman can be found at
|
2020-05-22 22:16:24 +00:00
|
|
|
[Read The Docs](https://podman.readthedocs.io). The man pages
|
2019-11-04 23:22:32 +00:00
|
|
|
can be found under the [Commands](https://podman.readthedocs.io/en/latest/Commands.html)
|
|
|
|
link on that page.
|
|
|
|
|
2019-10-30 00:27:12 +00:00
|
|
|
# Build the Docs
|
|
|
|
|
|
|
|
## Directory Structure
|
|
|
|
|
|
|
|
| | Directory |
|
|
|
|
| ------------------------------------ | --------------------------- |
|
|
|
|
| Markdown source for man pages | docs/source/markdown/ |
|
|
|
|
| man pages aliases as .so files | docs/source/markdown/links/ |
|
|
|
|
| restructured text for readthedocs.io | docs/rst/ |
|
|
|
|
| target for output | docs/build |
|
|
|
|
| man pages | docs/build/man |
|
|
|
|
| remote linux man pages | docs/build/remote/linux |
|
|
|
|
| remote darwin man pages | docs/build/remote/darwin |
|
|
|
|
| remote windows html pages | docs/build/remote/windows |
|
|
|
|
|
|
|
|
## Support files
|
|
|
|
|
|
|
|
| | |
|
|
|
|
| ------------------------------------ | --------------------------- |
|
|
|
|
| docs/remote-docs.sh | Read the docs/source/markdown files and format for each platform |
|
2019-11-04 23:22:32 +00:00
|
|
|
| docs/links-to-html.lua | pandoc filter to do aliases for html files |
|
2020-04-30 16:56:43 +00:00
|
|
|
|
|
|
|
## API Reference
|
|
|
|
|
|
|
|
The [latest online documentation](http://docs.podman.io/en/latest/_static/api.html) is
|
2020-06-08 17:45:26 +00:00
|
|
|
automatically generated by two cooperating automation systems based on committed upstream
|
|
|
|
source code. Firstly, [the Cirrus-CI docs task](../contrib/cirrus/README.md#docs-task) builds
|
|
|
|
`pkg/api/swagger.yaml` and uploads it to a public-facing location (Google Storage Bucket -
|
|
|
|
an online service for storing unstructured data). Second, [Read The Docs](readthedocs.com)
|
|
|
|
reacts to the github.com repository change, building the content for the [libpod documentation
|
|
|
|
site](https://podman.readthedocs.io/). This site includes for the API section,
|
|
|
|
some javascript which consumes the uploaded `swagger.yaml` file directly from the Google
|
|
|
|
Storage Bucket.
|
|
|
|
|
|
|
|
Since there are multiple systems and local cache is involved, it's possible that updates to
|
|
|
|
documentation (especially the swagger/API docs) will lag by 10-or-so minutes. However,
|
|
|
|
because the client (i.e. your web browser) is fetching content from multiple locations that
|
|
|
|
do not share a common domain, accessing the API section may show a stack-trace similar to
|
|
|
|
the following:
|
|
|
|
|
|
|
|
![Javascript Stack Trace Image](../contrib/cirrus/swagger_stack_trace.png)
|
|
|
|
|
|
|
|
If reloading the page, or clearing your local cache does not fix the problem, it is
|
|
|
|
likely caused by broken metadata needed to protect clients from cross-site-scripting
|
2020-07-28 12:23:45 +00:00
|
|
|
style attacks. Please [notify a maintainer](https://github.com/containers/podman#communications)
|
2020-06-08 17:45:26 +00:00
|
|
|
so they may investigate how/why the swagger.yaml file's CORS-metadata is incorrect. See
|
|
|
|
[the Cirrus-CI tasks documentation](../contrib/cirrus/README.md#docs-task) for
|
|
|
|
details regarding this situation.
|