-
Notifications
You must be signed in to change notification settings - Fork 2
Example
flywire edited this page Jan 28, 2023
·
7 revisions
This is a short example to demonstrate caption features using MkDocs in Win10.
- Navigate to the folder to contain the repository folder
git clone https://github.com/flywire/caption.git
cd caption
- E:\caption>
py -m venv .venv
- E:\caption>
.venv\scripts\activate
- (.venv) E:\caption>
Follow https://www.mkdocs.org/getting-started/ to install and test MkDocs
- (.venv) E:\caption>
pip install mkdocs
- (.venv) E:\caption>
mkdocs serve
- Open http://127.0.0.1:8000/ in your browser, and you'll see the default home page being displayed
Note: Load caption module
The Caption repository now containd a Docs folder and a mkdocs.yml
file with the configuration.
- Replace the following files for the example then serve the documents again and open the site:
docs\index.md - See #3#issuecomment-660130402
mkdocs.yml
site_name: captionTest
#theme:
# name: material
# extra_css: [extra.css]
markdown_extensions:
- admonition
- attr_list
- codehilite
# - fenced_code
- caption:
captionNumbering: true
# - yafg:
# figureNumbering: true
nav:
- Home: index.md
Save the following image as docs\images\gplv3.png