GithubHelp home page GithubHelp logo

Comments (4)

khadgarmage avatar khadgarmage commented on June 15, 2024

docs.js blog.js可以如下配置:

[
  {
    "dir1": {
      "name": {
        "en-us": "dir1",
        "zh-cn": "目录1"
      },
      "opened": true,
      "children": [
        {
          "dir2": {
            "name": {
              "en-us": "dir2",
              "zh-cn": "目录2"
            },
            "opened": true
          }
        }
      ]
    }
  }
]

from docsite.

khadgarmage avatar khadgarmage commented on June 15, 2024

或者更简单点,每个markdown目录下面有一个meta.yaml, 如果有这个文件就读这个文件里面的信息

name: 目录1
open: true

每个语言目录下自己写,如果没有的话就直接默认是open=false, name就是目录名,我感觉后面这个方案更简单,后面维护者只需要关心目录和markdown @purple-force

from docsite.

purple-force avatar purple-force commented on June 15, 2024

关于菜单的问题我近期考虑下

from docsite.

khadgarmage avatar khadgarmage commented on June 15, 2024

@purple-force
还有两个小需求
1、markdown支持页面内链接跳转,现在是有现成的plugin的,可否加一下
2、markdown内的图片能不能支持点击放大的效果~~(这个好像有点复杂)

from docsite.

Related Issues (20)

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.