$ mkdocs new test-mkdocs INFO - Creating project directory: test-mkdocs INFO - Writing config file: test-mkdocs/mkdocs.yml INFO - Writing initial docs: test-mkdocs/docs/index.md [[email protected] tmp]$ tree test-mkdocs/ test-mkdocs/ ├── docs │ └── index.md └── mkdocs.yml
1 directory, 2 files
运行本地服务器:
1 2 3 4 5 6 7 8 9
$ cd test-mkdocs/ $ mkdocs serve INFO - Building documentation... INFO - Cleaning site directory INFO - Documentation built in 0.05 seconds [I 200726 14:07:14 server:296] Serving on http://127.0.0.1:8000 INFO - Serving on http://127.0.0.1:8000 [I 200726 14:07:14 handlers:62] Start watching changes INFO - Start watching changes