Giter Club home page Giter Club logo

Comments (6)

mactsouk avatar mactsouk commented on August 12, 2024 1

Creating the TOC manually. I will also create a separate document in the repo to explain the way.

from docs.

mactsouk avatar mactsouk commented on August 12, 2024

Would that be possible to decide which documentation pages will have a TOC and which will not?

from docs.

mimimalizam avatar mimimalizam commented on August 12, 2024

Sadly I don't have an answer at the moment.

For the time being, I'd like to suggest using markdown headings on pages for which including ToC is necessary.

Here is an example:

It can be created it as follows. If there is a heading/title/subtitle (e.g. ### Example title or subtitle) you'll add - [Example title or subtitle](#example-title-or-subtitle) to the ToC. This will create link to title/subtitle in article.

Also, you can use different md elements to differentiate title from subtitle. For example,

- [Example title](#example-title) - for title
* [Example subtitle](#example-subtitle) - for subtitle

I've added these to the agent article as an example - feel free to change it :)
(doc on helpscout, markdown file in repository, raw )

from docs.

shiroyasha avatar shiroyasha commented on August 12, 2024

@mimimalizam In Semaphore 1.0, I've created a toc helper for markdown files https://github.com/renderedtext/semaphore-docs-new/blob/90c40594a3a72d9ef3237e6373b2ce12bc68578c/source/docs_helpers.rb.

With the helper, if you want a table of content on a particualar page, you can put:

<%= toc %>

anywhere on the page. Example: https://github.com/renderedtext/semaphore-docs-new/blob/43277f36408cd482f95a7e4a1713c803b6e7cd77/source/docs/cli-secrets.md.erb#L12.

Not sure if it can be used in this context. Let me know if it helps.

from docs.

mimimalizam avatar mimimalizam commented on August 12, 2024

tnx for pointing it out @shiroyasha 👏 🏆

After consulting @darkofabijan, we have decided to work on the programmatic implementation at some point next week (or during the week after).

In the meantime, please create the toc manually for pages where you find it necessary. (e.g. 3 articles) 🙇 @mactsouk

from docs.

markoa avatar markoa commented on August 12, 2024

I don't think we need this, writing ToCs manually wasn't so bad and can have useful effects as it makes you think about the structure of the page. Closing. :)

from docs.

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.