- Reduce search index files size
- Support add translate doc in doc dir, e.g. we use i18n url like
/doc1/zh/index.html
and/doc1/en/index.html
, now you can also use main doc as/doc1/index.html
and translate doc at/doc1/en/index.html
.
dir structure:
.
└── docs
└── doc1
└── en
site_config.json:
{
"route": {
"docs": {
"/doc1/": "docs/doc1"
},
},
"translate": {
"docs":{
"/doc1/": [ {
"url": "/doc1/en/",
"src": "docs/doc1/en"
}
]
},
}
}
- Add thumbs-up plugin
- Support directly use Jinja2 template in html file with out use layout in md file, more info see doc's html syntax part.
- Optimize sidebar
- Add mermaid support for markdown
- Ignore to detect all tempfiles
- Update markdown parser mistune to V2
- Add
teedoc-list-files
tool to list files by file size - Add
teedoc-compare
tool to compare two directories' files' difference - Add
teedoc-upload
tool to upload files to remote server, support tencent cloud and qiniu cloud - Optimize build log
- New Markdown syntax:
tabset
(jupyter not support yet)details
(jupyter not support yet)- Support customize header ID with
{#id}
syntax
- Metadata full support
yaml
format, and supportupdate
key to generate update history - New teedoc logo
- Fix long TOC can not show completely bug
- Remove install local plugins in
teedoc install
command - Optimize last modify date show
- Update theme plugin support TOC for mobile
- Update blog plugin support image in brief and support
cover
meta key
- Add fast mode for serve command, if use
teedoc serve --fast
, it will only copy assets first, no build pages, then you can visit page, the page will build when you visit this page. And build all pages task will work in background too.
- Plugin teedoc-plugin-theme-default support layout template
redirect.html
e.g. If we want/maixpy
and/maixpy.html
redirect to/soft/maixpy.html
, just create amaixpy.md
file add
---
layout: redirect
redirect_url: /soft/maixpy/zh/
---
- Change http serve from http.server to flask to become more compatible for more devices
- Plugin teedoc-plugin-ad-hint support config in doc config, not only site_config
- (for developers)plugin support add js_vars variable
- Add 404.html template, support i18n
- Add i18n support for plugins and templates
- Add comment plugin teedoc-plugin-comments-gitalk
- Add print page support
- Add anchor for titles
- Add warning log for wrong sidebar item
- Fix bug: not auto refresh page when content changed in previwe mode
- Fix search index file too large bug
- Fix navbar list item z-index error
- Fix toc smooth scroll bug when id is escaped charactors
- Add layout template customize support(Jinja2)
- Change markdown parser from markdown2 to mistune, now build faster at least 2x
- Ignore .git folder in file watcher
- Optimize file watcher, fix rename in file browser can't trigger event issue
- Fix error when copy error(not found error)
plugin theme_default: Add image viewer for img item
- Add summary2json and summary2yaml command for gitbook sidebar file
- Add sidebar splitter, you can set
sidebar_width
(default sidebar width) config for pluginteedoc-plugin-theme-default
, e.g.:
"teedoc-plugin-theme-default": {
"from": "../../plugins/teedoc-plugin-theme-default",
"config": {
"env": {
"sidebar_width": "300px"
}
}
}
Speed up build by change multithread build to multiprocess build
Add collapsed: false
option for sidebar directory to show sub directory by default
- fix sidebar active error
- optimize navbar list type display
- add navbar list type url support
- add --thread parameter, to set build thread number
- update markdown plugin to v1.0.8, warning when parse markdown error instead of program crash
Basic functions
project started