Giter Site home page Giter Site logo

Global TOC about otterwiki HOT 8 CLOSED

redimp avatar redimp commented on September 17, 2024
Global TOC

from otterwiki.

Comments (8)

redimp avatar redimp commented on September 17, 2024 1

Will work on this later today (have to check if the subdirectories work as intended).

from otterwiki.

marcrleonard avatar marcrleonard commented on September 17, 2024

PR submitted here: #33

from otterwiki.

redimp avatar redimp commented on September 17, 2024

I like the idea of a global TOC. To make it a complete feature it should include all the headlines of the pages (and link to them).

from otterwiki.

marcrleonard avatar marcrleonard commented on September 17, 2024

I did consider this (since there is already a mechanism to do get the page toc, which could be utilized), but didn't implement it for two reasons:

  1. It could quickly become a pretty heavy weight operation (opening/parsing every file on disk)
  2. It didn't seem to fit with the 'scope' of what the global TOC would provide. It's a high-level overview of the structure of the wiki (again, this would make more sense with sub directories).

Thoughts?

from otterwiki.

redimp avatar redimp commented on September 17, 2024

from otterwiki.

marcrleonard avatar marcrleonard commented on September 17, 2024

Yes true! It is the same as search!

from otterwiki.

redimp avatar redimp commented on September 17, 2024

I finished the global toc, including the headers of the pages, please check the feature-global-toc if this is useful and works as intended.

Preview:
image

from otterwiki.

redimp avatar redimp commented on September 17, 2024

PageIndex has the feature of displaying the headers:

image

from otterwiki.

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.