Code Monkey home page Code Monkey logo

docutil

docutil 是一个纯前端的网站应用,由 rust、javascritp 共同驱动

效果

screenshot

预览

特性

  • 纯前端渲染
  • hash 风格路由
  • 内置自适应主题
    • 打印优化
    • 移动端支持
  • 全文搜索支持
  • 支持自定义网站 title、footer 信息
  • 支持二级目录部署(https://example.com/mysite)

生态

  • 全文搜索
    • MVP 版
    • 基于 meilisearch 实现的全文搜索(介绍
  • webhook
    • 用于 gitops 的 webhook 服务。通过 github 等代码托管服务的 webhook 功能,实现自有服务器的网站更新。

部署

docutil 可以部署在自有服务器或 github pages 服务(或相似的服务),只要求基本静态文件服务支持。

docutil 按约定大于配置原则,文件布局如下:

/-------  # 根目录
    |-- docs/ # 文章目录
    |-- images/ # 图片等文件目录
    |-- dist/ # docutil 文件目录(index.mjs、index.css、web_bg.wasm)
    |-- index.html # 网站入口
    |-- README.md # 主页内容
    |-- SIDEBAR.md # 侧栏内容

index.html 是网站的主入口,可以在 body 标签是增加下面的代码,用于配置网站的页脚、入口、标题。

<script>
  window.config = {
    title: 'Website Title',
    root: '/',
    footer: `[Footer](http://github.com/yuekcc)`,
  };
</script>

可以参考示例

构建

工具链:

  • nodejs 16+
  • pnpm 7+
  • rust 1.60+
  • rsw 0.7+
    • cargo install rsw 可以安装 rsw 最新版本
sh build.sh

License

MIT

docutil's Projects

docutil icon docutil

docutil 是一个纯前端的网站应用,由 rust、javascritp 共同驱动

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.