Comments (6)
Creating the TOC manually. I will also create a separate document in the repo to explain the way.
from docs.
Would that be possible to decide which documentation pages will have a TOC and which will not?
from docs.
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.
@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.
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.
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)
- Documentation partial rewriting HOT 26
- Backslash in page ToC HOT 2
- Xcode 13.3 HOT 1
- Request: Publish a json schema for use with semaphore YAML files HOT 2
- macos-xcode14 image HOT 3
- Relative path of commands_file in Pipeline reference not explicit HOT 3
- Is it possible to re-run only failed jobs / blocks? HOT 4
- Ubuntu image documentation needs to be updated for new machine types HOT 1
- Job environment article for self-hosted agents should include a link to docker images
- macos-xcode15 image HOT 1
- Typo in "tasks" page HOT 1
- It is difficult to see the CLI widget and the access token HOT 4
- Issue loading disruption occurrencies / test details (without any clues) HOT 1
- [Semaphore 2.0] Heroku auth credentials issue HOT 1
- Update our Docker layer caching docs to avoid using SEMAPHORE_GIT_BRANCH HOT 2
- API Authentication example should be clearer/work
- Checkout commands use-cache should be clear that it's experimental
- "Incorrect SSH key format" when create a server HOT 1
- Ambiguous use of 'workflow' on 'Modeling Complex Workflows' page
- Update [sem-version] link on the Golang Continuous Integration page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.