markdownweb

command module
v0.0.0-...-242bed2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

README

关于 MarkdownWeb

本程序用于建立简单的静态展示网站,直接将Markdown文件翻译成HTML,并且允许使用模板文件md.tpl美化页面。

网站的根目录是files目录,首页是index.md

如果根目录或子目录中有md.tpl文件,会使用目录中的模板文件,否则将使用默认的md.tpl

允许显示一组轮播图片,用ad.json指定图片列表和相应的URL,使用方法参考例子中的md.tplad.js程序的配合方法。

About MarkdownWeb

This program is used to build a simple static display website, translate the 'markdown' file directly into 'HTML', and allow the template file 'md.tpl' to beautify the page.

The root directory of the website is the 'files' directory. The homepage is index.md.

If there is an 'md.tpl' file in the directory (or sub directory), the template file in the directory will be used. Otherwise, the default 'md.tpl' will be used.

It is allowed to display a group of rotation pictures. Use 'ad.json' to specify the picture list and the corresponding 'URL'. Refer to the matching method of 'md.tpl' and 'ad.js' in the example for the usage method.

实例网站文件结构 ( Directory struct of the example web site )
MarkdownWeb/
├── markdownweb
├── ad.json
├── md.tpl
├── files
│   ├── ad.js
│   ├── appimagelauncher.md
│   ├── bei-an.png
│   ├── connpool.md
│   ├── favicon.ico
│   ├── images
│   │   ├── 1.png
│   │   ├── 2.png
│   │   ├── diary.jpg
│   │   ├── res.png
│   │   └── shot.png
│   ├── index.md
│   ├── jquery-3.3.1.min.js
│   ├── mdserv.md
│   ├── md.tpl
│   ├── mdview.md
│   ├── pipeconn.md
│   ├── pluginloader.md
│   ├── rpc2d.md
│   ├── RunOnUbuntu1904.md
│   ├── secret-diary-1206-win32.zip
│   ├── secret-diary.md
│   ├── shipgunner.md
│   ├── style.css
│   └── traycontroller.md

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL