Skip to content

RedisLabs/mkdocs-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkdocs-include

This MkDocs plugin includes files in your markdown documents.

Setup

Install the plugin using pip:

pip install git+https://github.com/RedisLabs/mkdocs-include.git

Activate the plugin in mkdocs.yml:

plugins:
  - search
  - include:
    src_path: docs/sources

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

More information about plugins in the [MkDocs documentation][mkdocs-plugins].

Config

  • src_path - The path to your source files

Usage

Assuming you have a file at "docs/sources/hello.c" and that the src_path property is set to "docs/sources" add the following to your .md file to include it:

{{ include('hello.c') }}

About

An MkDocs plugin for including files in markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published