diff --git a/docs/index.md b/docs/index.md index dcd37cd..5c54071 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,6 +23,10 @@ features: details: 来看看 DR 到底是什么吧 link: main/readme icon: 🏃🏻‍♀️ + - title: Readme First! + details: Let's first check out what is DR + link: main/readme-en + icon: 🌍 - title: 使用 Nuitka 打包 details: Difficult Rocket 使用 Nuitka 打包, 作者甚至在 Nuitka 里有贡献, 这里是一些相关文档 icon: 📦 @@ -31,13 +35,12 @@ features: details: DR 是一个开源项目! 来这里看看你需要怎么才能帮助 DR icon: 🎨 link: main/contributing - - title: Simpler I18n solution - details: With the built-in I18n solution, you can easily provide multi-language support for documents or components. - icon: 🌍 - - title: Static site generation - details: In production, it automatically builds into static HTML files, which can be easily deployed anywhere. - icon: 🌈 - - title: Providing multiple custom capabilities - details: Through its extension mechanism, you can easily extend theme UI and build process. + - title: 更新日志 + details: 来看看 DR 都更新了什么吧 icon: 🔥 + link: main/change_log + - title: 计划特性 + details: DR 计划实现一些特性, 这里是一些相关文档 + icon: 🌈 + link: main/plan_features --- \ No newline at end of file diff --git a/docs/main/_meta.json b/docs/main/_meta.json index 148fbc3..fa91b5e 100644 --- a/docs/main/_meta.json +++ b/docs/main/_meta.json @@ -45,6 +45,8 @@ { "type": "dir", "name": "no", - "label": "NO!" + "label": "NO!", + "collapsible": true, + "collapsed": true } ] \ No newline at end of file diff --git a/docs/main/howto.md b/docs/main/howto.md index c9446e0..36317a4 100644 --- a/docs/main/howto.md +++ b/docs/main/howto.md @@ -1,6 +1,6 @@ # 这里是 DR 的 贡献指南 -主要包括 +> 主要包括 - 设计文档(没写多少) - [贡献指南](/main/howto/contributing.md) diff --git a/docs/main/howto/logger.md b/docs/main/howto/logger.md new file mode 100644 index 0000000..8d701d6 --- /dev/null +++ b/docs/main/howto/logger.md @@ -0,0 +1,16 @@ +# DR 的 logger + +DR 使用 `lib-not-dr` 的 `loggers` 模块作为 logger + +```python +from lib_not_dr import loggers + +logger = loggers.config.get_logger('root') + +logger.info('some info') +logger.debug('some debug') + +logger.info('with tag', tag='a tag') + +logger.info('without \\n', end='no \\n') +```