Skip to main content

License: MIT PyPI version CI workflow Downloads Imports: isort Code style: black Code style: flake8

MkDocs Homepage Copier

Reuse the README.md file by copying it into the docs/ directory as the docs/index.md file

Linting

Isort, black, and flake8 are used to check that code is well formatted and styled. Pre-commit hooks are used to automate this process.

  • Install pre-commit package: pip install pre-commit
  • Install git hook scripts: pre-commit install
  • (optional) Run against all files: pre-commit run --all-files

Testing

To run tests:

  • Install pytest and coverage: pip install pytest coverage
  • Run tests: coverage run --source="copier" -m pytest
  • (optional) View coverage report: coverage report

Usage

Install the package via pip:

  • pip install mkdocs-homepage-copier

Or install the package from source:

  • git clone https://github.com/onyonkaclifford/MkDocs-homepage-copier.git
  • cd MkDocs-homepage-copier
  • pip wheel --no-deps . -w dist
  • pip install dist/mkdocs_homepage_copier-{version}-py3-none-any.whl

Enable the plugin in mkdocs.yml:

plugins:
  - search
  - mkdocs-homepage-copier
nav:
  - Home: index.md

If the file to be copied is not named README.md and/or the destination path isn't docs/index.md, use the parameters src and dest to identify the correct file to be copied and the correct destination path it's to be copied to. Either one, both, or none of the two parameters can be used depending on the need.

plugins:
  - search
  - mkdocs-homepage-copier:
      src: source.md
      dest: path/to/destination.md
nav:
  - Navigation option: path/to/destination.md

To disable mkdocs-homepage-copier, set the copy parameter to false. To re-enable, set it to true or remove it from mkdocs.yml, as it's set to true by default.

plugins:
  - search
  - mkdocs-homepage-copier:
      copy: false

To copy extra files in addition to the homepage file, use the extras parameter.

plugins:
  - search
  - mkdocs-homepage-copier:
      src: source.md
      copy: false
      extras:
        - src: path/to/source1.md
          dest: path/to/destination1.md
          copy: true
        - src: path/to/source2.md
          dest: path/to/destination2.md
          copy: false

Metadata

Release files for mkdocs-homepage-copier 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-homepage-copier 1.0.0
File Interpreter ABI Platform Actions
mkdocs_homepage_copier-1.0.0-py3-none-any.whl Python 3 none any Details for mkdocs_homepage_copier-1.0.0-py3-none-any.whl

Release files / mkdocs_homepage_copier-1.0.0-py3-none-any.whl

Download URL mkdocs_homepage_copier-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d97d530320fa6f1dc1ec3df066da51763dd0e21d9d8882978f7289559942220
BLAKE2b-256 checksum
How to use checksums
f1170507d12f9061d96b2ed8d5782af4bcef558d7f5852cca224d3d0c6904277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for mkdocs-homepage-copier 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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