Proposal: display multiple versions of docs
Maintainer antworten meist innerhalb von 2 Tagen
@anikethsaha arbeitet bereits daran.
Seit 27.7.2020.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
versioning
Summary
Support for creating docs for different versions.
Motivation
Versioning support in a documentation generator is quite helping as it helps in supporting separating the docs for different versions. Helps is covering breaking changes. Improves readability.
There are other documentation generators that support this like docusaurus, gitbook etc.
Detailed Design

This will mainly require to make changes in the docsify-cli repo. I don't think we need any changes in the core.
We have great support for having navbar We will make use of that.
- Configuration
...
$docsify = {
version : {
// none I guess
}
}
...
We can either make it to the navbar.
- cli command
docsify version <version> <path? = '.'>
This will do the following work in sequence
- it will create a version with name
<version>in<path> - check for the navbar markdown content i.e
_navbar.md - if present, good to go. If not present, ask whether the
CLIcan create a new one or not. If theCLIis answered withno. Stop the operation - Update the
_navbar.mdby pretending the content with creating a new listversions. First, it will check whetherversionsare present as list heading or not. and inside that, append the list with the<version>. Use the AST for the markdown content in order to prepend, append, and check for theversionlist heading. (probably useremark) - it will copy-paste every files/folder present in the current directory from where this command is being run i.e
process.cwd()
to that folder i.e<path>/<version> - Done
Documentation
Create a versioning page in main docs. Create CLI command docs in the docsify-cli and either embed or do the remote rendering in the main docs in order to always show the latest docs
Drawbacks
Few cons or drawbacks
- it mandates the use of
_navbar.md - cant be customizable.
<please comment if you find any>
Backwards Compatibility Analysis
Not required. As it will need changes in the cli not in the core.
Alternatives
Manually copy-pasting the files/folder and changing the _navbar.md
Open Questions
- do we want this on the sidebar? I tried but it was not looking good.
Help Needed
- Please provide some ( edge ) cases where this might break.
- Provide some suggestions to refine the proposal.
- At last, anyone wants to implement/take this ?
Frequently Asked Questions
N/A
Related Discussions
Forgot the repo + issue. But I did notice few issues and requests for this.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 31.5k
- Forks
- 5.8k
- Ø Merge
- 2 T. 14 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus docsifyjs/docsify
-
Query parameter values are truncated at a second equals signEvtl. vergeben @xu91102 hat das vor 22 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 2 Tagen
-
bug Triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Cached AJAX responses lose status metadata exposed through vm.route.responseEvtl. vergeben @xu91102 hat das vor 22 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
In the Edge browser, the character `{docsify-updated}` is not replacedEvtl. wieder frei @AmanUllah687 hat das vor 75 Tagen übernommen, und es ist kein Pull Request offen. Offenwait for information
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
docsifyjs/docsify#2681 · 11 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
feature request Triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
docsifyjs/docsify#2643 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in docsifyjs/docsify
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
gkjohnson/three-mesh-bvh#933 ·
-
scope: curriculum status: waiting triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
freeCodeCamp/freeCodeCamp#71076 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
HarperFast/harper#3275 ·
Maintainer antworten meist innerhalb von 1 Tag
-
liveQuery: a late rejection from an aborted (superseded) query run still reaches observer.errorOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
steerion-labs/bounded-agent-runtime#93 ·
Maintainer antworten meist innerhalb von 1 Tag