Skip to main content

PyScaffold extension which uses Markdown instead of reStructuredText

Project description

Build Status ReadTheDocs Coveralls PyPI-Server Downloads

pyscaffoldext-markdown

PyScaffold extension which replaces reStructuredText formatted files by Markdown format except for Sphinx-related files.

Usage

Just install this package with pip install pyscaffoldext-markdown and note that putup -h shows a new option --markdown. Basically this extension will replace README.rst by a proper README.md and activate the support of Markdown files in Sphinx.

Limitations

Due to limitations of the Markdown syntax compared to reStructuredText, it is necessary to use symbolic links (and some reStructuredText files) to avoid keeping multiple copies of files (such as CHANGELOG.md) meant to be placed at the root of the repository but included in the documentation generated by Sphinx. If you are a Windows user please make sure to configure your system accordingly. The following references might be helpful:

Symbolic links on Windows

Markdown limitations

Windows users that still face problems after configuring their systems for symbolic links might want to attempt WSL or decide to stick with reStructuredText for (problematic) parts of their documentation files.

Building and Releasing

By default, the tox configuration generated by PyScaffold is compatible with Markdown (as implemented in this extension). This means that (after installing tox with pip or pipx) you can run:

tox -e docs  # to build your documentation
tox -e build  # to build your package distribution
tox -e publish  # to test your project uploads correctly in test.pypi.org
tox -e publish -- --repository pypi  # to release your package to PyPI
tox -av  # to list all the tasks available

Please remember that the command python setup.py release is no longer recommended, so if you don't like tox, please consider using Sphinx and twine directly:

python -m pip install -U pip setuptools wheel sphinx twine
python setup.py bdist_wheel  # to build your package distributions
make -C docs html  # to build your docs
twine upload dist/*  # to release your package to PyPI

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd pyscaffoldext-markdown
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Please also check PyScaffold's contribution guidelines.

Note

This project has been set up using PyScaffold 4.0. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

pyscaffoldext-markdown-0.4b3.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

pyscaffoldext_markdown-0.4b3-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyscaffoldext-markdown-0.4b3.tar.gz.

File metadata

  • Download URL: pyscaffoldext-markdown-0.4b3.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

File hashes

Hashes for pyscaffoldext-markdown-0.4b3.tar.gz
Algorithm Hash digest
SHA256 ac746b55ffea5c2429d8d7c673d576a5b8a86b98b3836176010a2bce02eb321d
MD5 4b68a4f7c1fe5df5a8b597f40b899bce
BLAKE2b-256 b90e1c492b2609e63cd91c1dc2a181af449943c868d02a464e90ae0a3da6ff30

See more details on using hashes here.

File details

Details for the file pyscaffoldext_markdown-0.4b3-py2.py3-none-any.whl.

File metadata

  • Download URL: pyscaffoldext_markdown-0.4b3-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9

File hashes

Hashes for pyscaffoldext_markdown-0.4b3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 795c87d1b78adfc402ced58ffb3899df909b78fdc08a8025aabb53aae2cabd16
MD5 a561c500df0004745e7500ac5c5040be
BLAKE2b-256 91d5dbceb0f878e5e2feb17014a45ec51f16b0d8e74bc4e9814915dac43ec3d8

See more details on using hashes here.

Supported by

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