Skip to main content

Tool for uploading HTML documentation to a docat server, as an alternative to docatl.

Project description

docat-upload

Release Build status codecov Commit activity License

Tool for uploading HTML documentation to a docat server, as an alternative to docatl.

The tool packages a specified folder with HTML documentation content (e.g. created with mkdocs) and uploads it to the specified docat server.

Extra features:

  • For Python documentation the script can extract the document version from the Python module with the same name as project.
  • Limit the number of published version with -max-versions
    • The script will automatically delete older versions if the number of versions is exceeded
  • Specify custom SSL certificate path if an in-house CA is used.
  • Support insecure SSL for use with self signed certificates

Usage

usage: docat_upload [-h] -p PROJECT [-f FOLDER] [-r RELEASE] [-t TAG] -s SERVER [-a API_KEY] [-m NUM] [-d] [-V] [-i] [-c SSL_CERT]

options:
  -h, --help            show this help message and exit
  -p PROJECT, --project PROJECT
                        Project name
  -f FOLDER, --folder FOLDER
                        Documentation folder to be uploaded, e.g. `docs/_build/html`
  -r RELEASE, --release RELEASE
                        Release version for the upload, by default retrieved from the module.__version__
  -t TAG, --tag TAG     Tag this version, e.g. 'latest'
  -s SERVER, --server SERVER
                        URL of the docat server
  -a API_KEY, --api-key API_KEY
                        API key for docat server, required for delete and overwrite
  -m NUM, --max-versions NUM
                        Cut number of versions to max. NUM
  -d, --delete          Delete the specified version
  -V, --version         show program's version number and exit
  -i, --insecure        Don't check SSL cert
  -c SSL_CERT, --ssl-cert SSL_CERT
                        Path to SSL cert or cert bundle, e.g. /etc/ssl/certs/ca-certificates.crt
  -v, --verbose         Verbose output

.env settings

Instead of passing the options via CLI, they can be provided in an .env file.

DOCAT_PROJECT=docat_upload
DOCAT_SOURCE=docs/_build/html
DOCAT_SERVER=https://my.docat.server:8443/
DOCAT_API_KEY=abc123
DOCAT_MAX_VERSIONS=10
CERT_PATH=/etc/ssl/certs/ca-certificates.crt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docat_upload-0.2.0.tar.gz (82.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docat_upload-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file docat_upload-0.2.0.tar.gz.

File metadata

  • Download URL: docat_upload-0.2.0.tar.gz
  • Upload date:
  • Size: 82.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for docat_upload-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eb9754a9be8796437de28d3be982b810b0c80ea58f043b3f37c05012b3d5cd74
MD5 27ce825d89c16e6abe70ab0fbe0e9da9
BLAKE2b-256 238e911ff9ea45a533786e7eb43a2ae70d2236784967ec720ff869ff5ba000fb

See more details on using hashes here.

File details

Details for the file docat_upload-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: docat_upload-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for docat_upload-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb24cce32111d68d1f2eea0e2985d3718ec17067c3a21d57c04e25bb4384d14
MD5 95f3ca57a5d00b882d9c596e7bc76938
BLAKE2b-256 c539595b7f9d396d73a3df0740b15643b655fccafb75ebdba284a112dc7d8e4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page