Skip to main content

pubdoc

Публикация документации

Build Status

Возможности

  • Работа в ОС семейства: Linux, Mac OS X, Windows;
  • Подерживается публикация на:

Установка и обновление

  • Установить Python версии не ниже 3.6;
  • Установить пакет d2doc из PyPI командой:
    pip install d2doc
    
  • Для обновления пакета необходимо воспользоваться командой:
    pip install -U d2doc
    

Использование скрипта

Usage: pubdoc.py [OPTIONS] COMMAND [ARGS]...

Options:
  --log-level TEXT  Log level [CRITICAL, FATAL, ERROR, WARNING, DEBUG, INFO,
                    NOTSET]
  --help            Show this message and exit.

Commands:
  dokuwiki

Публикация на DokuWiki

Команда dokuwiki

Usage: pubdoc dokuwiki [OPTIONS]

Options:
  -t, --target TEXT         Dokuwiki url.  [required]
  --username TEXT           Dokuwiki username.  [required]
  --password TEXT           Dokuwiki password.  [required]
  -n, --namespace TEXT      Dokuwiki namespace.  [required]
  -d, --data-dir PATH       Input data dir.  [required]
  -m, --data-dir-mask TEXT  Files mask for option '--data-dir'.
  --help                    Show this message and exit.

Пример использования скрипта в Linux

pubdoc dokuwiki \
    --target 'https://bla.bla.com' \
    --username 'Логин' \
    --password 'Пароль' \
    --namespace 'Проект 1:Техническая документация' \
    --data-dir './testdocs' \
    --data-dir-mask '**/*.md'

Пример использования скрипта в Linux c использованием переменных среды

export PUBDOC_DOKUWIKI_TARGET='https://bla.bla.com'
export PUBDOC_DOKUWIKI_USERNAME='Логин'
export PUBDOC_DOKUWIKI_PASSWORD='Пароль'
export PUBDOC_DOKUWIKI_NAMESPACE='Проект 1:Техническая документация'
export PUBDOC_DOKUWIKI_DATA_DIR='./testdocs'
export PUBDOC_DOKUWIKI_DATA_DIR_MASK='**/*.md'
export PUBDOC_LOG_LEVEL='DEBUG'
pubdoc dokuwiki 

Release files for pubdoc 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pubdoc 0.5.3
File Size Uploaded
pubdoc-0.5.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pubdoc 0.5.3
File Interpreter ABI Platform
pubdoc-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / pubdoc-0.5.3.tar.gz

Download URL pubdoc-0.5.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f6c5087dc2022f76db124d578237e0fe1e2cd8a03a6ecda7886d94c48f428b83
BLAKE2b-256 checksum
How to use checksums
61c4f16c315cd03ac892b5103cb6611e2573b76703ec17a3dd13d387f65af385
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

Release files / pubdoc-0.5.3-py3-none-any.whl

Download URL pubdoc-0.5.3-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2130f424bbe58bf2bef74ea22416c2e59cdb06667f382eccbecc1b2ffea808cb
BLAKE2b-256 checksum
How to use checksums
fe004157c0e04c38abd218862a9331ec0c14aad3ff76ef0173bb5c3407df2896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page