|
@@ -6,31 +6,31 @@ This project provides a low-dependency, one-click deployment solution for render
|
|
|
|
|
|
|
|
## Features
|
|
## Features
|
|
|
|
|
|
|
|
-- **Minimal dependencies**: Only requires a single HTML file to render Markdown web pages.
|
|
|
|
|
-- **Code highlighting**: Supports syntax highlighting for code blocks in Markdown.
|
|
|
|
|
-- **Markdown support**: Renders Markdown files to HTML.
|
|
|
|
|
-- **Mermaid support**: Renders Mermaid diagrams in Markdown.
|
|
|
|
|
-- **Multi-language support**: Provides machine translation between languages.
|
|
|
|
|
-- **Dark mode**: Supports light, dark, and system theme modes.
|
|
|
|
|
-- **Pjax support**: Enables page navigation without full refresh.
|
|
|
|
|
|
|
+- **Low Dependencies**: Only one HTML file is required to render Markdown to web pages.
|
|
|
|
|
+- **Syntax Highlighting**: Render code blocks in Markdown.
|
|
|
|
|
+- **Markdown Support**: Convert Markdown files to HTML.
|
|
|
|
|
+- **Mermaid Support**: Render Mermaid diagrams in Markdown.
|
|
|
|
|
+- **Multi-language Support**: Machine translation between multiple languages.
|
|
|
|
|
+- **Dark Mode**: Support light, dark, and system default themes.
|
|
|
|
|
+- **Pjax Support**: Page navigation without full reload.
|
|
|
|
|
|
|
|
## Usage
|
|
## Usage
|
|
|
|
|
|
|
|
-| Filename | Description |
|
|
|
|
|
-| :----- | :--- |
|
|
|
|
|
-| index.html | Default HTML entry file using CDN dependencies. |
|
|
|
|
|
-| index.min.html | Minified HTML entry file using CDN dependencies. |
|
|
|
|
|
-| index.allinone.html | All-in-one HTML entry file with embedded dependencies which can be downloaded by script. |
|
|
|
|
|
-| index.allinone.min.html | Minified all-in-one HTML entry file with embedded dependencies which can be downloaded by script. |
|
|
|
|
|
|
|
+| File Name | Description |
|
|
|
|
|
+| :-------- | :---------- |
|
|
|
|
|
+| [index.html](index.html) | Default HTML entry file using CDN dependencies |
|
|
|
|
|
+| [index.min.html](index.min.html) | Minified HTML entry file using CDN dependencies |
|
|
|
|
|
+| [index.allinone.html](index.allinone.html) | All-in-one HTML entry file with embedded dependencies |
|
|
|
|
|
+| [index.allinone.min.html](index.allinone.min.html) | Minified all-in-one HTML entry file with embedded dependencies |
|
|
|
|
|
|
|
|
### Manual Deployment
|
|
### Manual Deployment
|
|
|
|
|
|
|
|
-1. Download the required HTML file from [Releases](https://github.com/PJ-568/MARKDOWN.HTML/releases) and place it in your website root directory;
|
|
|
|
|
-2. The HTML file will automatically render `index.md` in the same directory, or `README.md` if `index.md` doesn't exist.
|
|
|
|
|
|
|
+1. Download the required HTML file from the [Releases page](https://github.com/PJ-568/MARKDOWN.HTML/releases) and place it in your website directory;
|
|
|
|
|
+2. When accessed, the HTML file will automatically render `index.md` in the same directory. If `index.md` doesn't exist, it will render `README.md`.
|
|
|
|
|
|
|
|
-### Github Actions
|
|
|
|
|
|
|
+### GitHub Actions
|
|
|
|
|
|
|
|
-Compiles and deploys HTML files to specified directory. Replace `<version>` with actual version number.
|
|
|
|
|
|
|
+Compile and deploy HTML files to the target directory. Replace `<version>` with the actual version number.
|
|
|
|
|
|
|
|
```yaml
|
|
```yaml
|
|
|
- name: Deploy markdown.html
|
|
- name: Deploy markdown.html
|
|
@@ -42,45 +42,48 @@ Compiles and deploys HTML files to specified directory. Replace `<version>` with
|
|
|
use-all-in-one: 'false'
|
|
use-all-in-one: 'false'
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-## Notes
|
|
|
|
|
|
|
+## Additional Notes
|
|
|
|
|
|
|
|
-`This open-source project allows modifications but please retain original author information. If removal is necessary, please contact the author to avoid losing technical support.` See [License](#license) for details.
|
|
|
|
|
|
|
+`The open-source projects used in this work may be modified, but please retain the original author information. Contact the author if removal is necessary to avoid losing technical support.` For details, see [License](#license).
|
|
|
|
|
|
|
|
-## Contributions
|
|
|
|
|
|
|
+## Contributing
|
|
|
|
|
|
|
|
-We welcome contributions to code and content. Please refer to:
|
|
|
|
|
|
|
+We welcome contributions to this project. Please review:
|
|
|
|
|
|
|
|
-- [Logic Documentation](doc/logic.md)
|
|
|
|
|
-- [Contribution Guidelines](CONTRIBUTING.md)
|
|
|
|
|
|
|
+- [Program Logic](doc/logic.md)
|
|
|
|
|
+- [Script Design](doc/scripts.md)
|
|
|
|
|
+- [Workflow](doc/workflow.md)
|
|
|
|
|
+
|
|
|
|
|
+Ensure your contributions follow project specifications. For contribution guidelines, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
|
|
|
|
|
|
## License
|
|
## License
|
|
|
|
|
|
|
|
-This project is licensed under [CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). For complete license information, see [`LICENSE`](LICENSE).
|
|
|
|
|
|
|
+This project is licensed under [CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). The full license text is available in [`LICENSE`](LICENSE).
|
|
|
|
|
|
|
|
-### Acknowledgments
|
|
|
|
|
|
|
+### Acknowledgements
|
|
|
|
|
|
|
|
#### Projects
|
|
#### Projects
|
|
|
|
|
|
|
|
-|Name|License|Links|
|
|
|
|
|
-|:-:|:--|:--|
|
|
|
|
|
-|tabler-icons|[MIT License](//mit-license.org)|[Github](https://github.com/tabler/tabler-icons), [Website](https://tabler.io/icons)|
|
|
|
|
|
-|highlightjs/highlight.js|[BSD-3-Clause license](https://github.com/highlightjs/highlight.js/raw/refs/heads/main/LICENSE)|[Github](https://github.com/highlightjs/highlight.js), [Website](https://highlightjs.org)|
|
|
|
|
|
-|markedjs/marked|[marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md)|[Github](https://github.com/markedjs/marked), [Website](https://marked.js.org)|
|
|
|
|
|
-|mermaidjs/mermaid|[MIT License](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE)|[Github](https://github.com/mermaid-js/mermaid), [Website](https://mermaid.js.org)|
|
|
|
|
|
-|translate.js|[Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)|[Github](https://github.com/xnx3/translate), [Gitee](https://gitee.com/mail_osc/translate), [Website](https://translate.zvo.cn)|
|
|
|
|
|
-|darkmode.js|[MIT license](//mit-license.org)|[Github](https://github.com/sandoche/Darkmode.js), [Website](https://darkmodejs.learn.uno)|
|
|
|
|
|
-|MoOx/pjax|[MIT license](//mit-license.org)|[Github](https://github.com/MoOx/pjax)|
|
|
|
|
|
-|instant.page|[MIT license](//mit-license.org)|[Github](https://github.com/instantpage/instant.page), [Website](https://instant.page)|
|
|
|
|
|
-|Maple Mono|[OFL-1.1 license](https://openfontlicense.org/open-font-license-official-text/)|[Github](https://github.com/subframe7536/maple-font), [Website](https://font.subf.dev)|
|
|
|
|
|
|
|
+| Name | License | Links |
|
|
|
|
|
+| :--- | :------ | :---- |
|
|
|
|
|
+| tabler-icons | [MIT](//mit-license.org) | [GitHub](https://github.com/tabler/tabler-icons), [Website](https://tabler.io/icons) |
|
|
|
|
|
+| highlight.js | [BSD-3-Clause](https://github.com/highlightjs/highlight.js/raw/main/LICENSE) | [GitHub](https://github.com/highlightjs/highlight.js), [Website](https://highlightjs.org) |
|
|
|
|
|
+| marked | [marked License](https://github.com/markedjs/marked/blob/master/LICENSE.md) | [GitHub](https://github.com/markedjs/marked), [Website](https://marked.js.org) |
|
|
|
|
|
+| mermaid | [MIT](https://github.com/mermaid-js/mermaid/blob/develop/LICENSE) | [GitHub](https://github.com/mermaid-js/mermaid), [Website](https://mermaid.js.org) |
|
|
|
|
|
+| translate.js | [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0) | [GitHub](https://github.com/xnx3/translate), [Gitee](https://gitee.com/mail_osc/translate), [Website](https://translate.zvo.cn) |
|
|
|
|
|
+| darkmode.js | [MIT](//mit-license.org) | [GitHub](https://github.com/sandoche/Darkmode.js), [Website](https://darkmodejs.learn.uno) |
|
|
|
|
|
+| pjax | [MIT](//mit-license.org) | [GitHub](https://github.com/MoOx/pjax) |
|
|
|
|
|
+| instant.page | [MIT](//mit-license.org) | [GitHub](https://github.com/instantpage/instant.page), [Website](https://instant.page) |
|
|
|
|
|
+| Maple Mono | [OFL-1.1](https://openfontlicense.org) | [GitHub](https://github.com/subframe7536/maple-font), [Website](https://font.subf.dev) |
|
|
|
|
|
|
|
|
#### Services
|
|
#### Services
|
|
|
|
|
|
|
|
-|Icon|Name|
|
|
|
|
|
-|:-:|:--|
|
|
|
|
|
-|-|[360 Frontend CDN](https://cdn.baomitu.com/)|
|
|
|
|
|
-||[ByteDance Static CDN](https://cdn.bytedance.com/)|
|
|
|
|
|
-||[Chinese Web Font Project](https://chinese-font.netlify.app)|
|
|
|
|
|
|
|
+| Icon | Service |
|
|
|
|
|
+| :--- | :------ |
|
|
|
|
|
+| - | [360 Frontend CDN](https://cdn.baomitu.com/) |
|
|
|
|
|
+|  | [ByteDance Static CDN](https://cdn.bytedance.com/) |
|
|
|
|
|
+|  | [Chinese Web Fonts](https://chinese-font.netlify.app) |
|
|
|
|
|
|
|
|
-## Stars
|
|
|
|
|
|
|
+## Stargazers
|
|
|
|
|
|
|
|
[](https://starchart.cc/PJ-568/MARKDOWN.HTML)
|
|
[](https://starchart.cc/PJ-568/MARKDOWN.HTML)
|