Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switcher to switch between various .md files for versions, languages, etc. #138

Closed
dmyers opened this issue Nov 21, 2014 · 26 comments
Closed

Comments

@dmyers
Copy link
Contributor

dmyers commented Nov 21, 2014

Do you have any thoughts on how you could have multiple API versions? It would be kind of cool to somehow do it based on folder structure and how the shell/ruby/etc switching works maybe.

@lord
Copy link
Member

lord commented Nov 21, 2014

Hadn't thought about it, no. Any ideas? I'm open to suggestions, but also prefer ideas that keep Slate relatively simple and straightforward.

@ApoorvSaxena
Copy link

As versioning applies to the entire documentation, it better be placed on the top with a dropdown(if required). Also, header can be used to place other important links which are currently a part of the left sidebar.

dashboard_version

@ApoorvSaxena
Copy link

Another possible solution is to place the version control information on the left hand side, enclosing the resources that get affected due to versioning.

@lord
Copy link
Member

lord commented Nov 30, 2014

Ah, hmm, and perhaps the dropdown would link to other .md files in the Slate project? I like this idea. I definitely think the sidebar would be a good place for that, too. I'll try to hack something up on this when I get the chance.

@ApoorvSaxena
Copy link

Have implemented the above prescribed solution in design, you can checkout this repo to start with.

@lord
Copy link
Member

lord commented Dec 1, 2014

Thanks for the submission, I'll look into it when I get around to implementing this.

@lord lord added this to the Version 1.1 milestone Dec 4, 2014
@natebird
Copy link

I’m also interested in seeing this implemented.

@natebird
Copy link

@ApoorvSaxena The repo link provided above links to just a forked repo without any changes (at least I couldn’t see anything different). Maybe they weren’t pushed? Thanks…

@lord
Copy link
Member

lord commented Jan 12, 2015

@natebird I believe @ApoorvSaxena put the changed code in a different branch of that repo.

@natebird
Copy link

I see that. Thanks!

@s12chung
Copy link

@lord when do you think this will be implemented? thanks.

@lord
Copy link
Member

lord commented Jan 20, 2015

@s12chung I unfortunately can't give a definite time, but it's on my todo list.

@oubiwann
Copy link

oubiwann commented May 6, 2015

+1 for this feature; crucial for my projects.

@sman591
Copy link

sman591 commented May 28, 2015

+1, it's a requirement for my current project

@lord lord modified the milestones: Version 2, Version 1.1 Jun 20, 2015
@lord lord changed the title Ability to add api versioning Add markdown file switcher Jun 20, 2015
@lord lord changed the title Add markdown file switcher Add switcher to switch between various .md files for versions, languages, etc. Jun 20, 2015
ketan referenced this issue in gocd/api.go.cd Jul 13, 2015
Migrate feeds API doc to api.go.cd (#138)
@oubiwann
Copy link

I got around this via a deployment hack.

Basically, when I tag a new release, I generate the site and move it into a "master" docs directory with a dirname matching the version. The index.html file there is a metarefresh to the current docs.

You can see it in action here:

(note there seem to be unrelated issues with focus and hover, with nav items getting selected incorrectly ... I'll poke around in the other bugs and see if anyone's reported this)

Update: the issue with the nav items not being selected properly seem to be #280.

@rixx
Copy link

rixx commented Oct 6, 2015

+1 very interested; both API versioning and multiple languages would be very nice (and good practice for documentation).

@lord lord removed this from the Version 2 milestone Jan 26, 2016
@thomax
Copy link

thomax commented Sep 14, 2016

@lord Are there any plans for releasing this feature? If not, mayhaps there is an alive and healthy fork where this has been implemented?

@lord
Copy link
Member

lord commented Sep 14, 2016

Yes! It is planned, but there is no current timeline.

ketan referenced this issue in ketan/api.go.cd Oct 24, 2016
Bumped up pipeline_config API to V3 to support elastic_profile_id
@jonomacd
Copy link

jonomacd commented Nov 3, 2016

Just wanted to +1 this feature as we need it as well. Thanks!

@seweil
Copy link

seweil commented Nov 30, 2016

We are interested as well. Our scenario: Complex API is pushing the perf and usability limits of one tall page. I'd like to split it into a few major sections.

@seanwendt
Copy link

+1 as well, updating our API but would like to keep documentation for both V1 and V2 available on the same single-page app. I like the idea of the drop-down to toggle between versions. In the meantime, I've simply deployed a custom index.html landing page, and copied /source into two version-specific folders: /v1 and /v2. index.html simply has hyperlinks to "/v1" or "/v2".

@lord
Copy link
Member

lord commented Feb 24, 2017

As another note for future reference when this is implemented — #679 suggests a hierarchy of pages might be nice, instead of a simple dropdown switcher.

@qB0t
Copy link

qB0t commented Apr 6, 2018

Any updates on this one? Would be great to have for multilingual documentations.

@P1llus
Copy link

P1llus commented Apr 27, 2018

Yeah i second this one, seems very interesting! If not only for API versions, it could also be used if you document different versions of software..

An example would be to be able to tag each API call you document with a version tag of the software it is supported on (one or more). Then let the user pick which version(s) he want's to see.

@zramsay
Copy link

zramsay commented May 24, 2018

+1 yeah this would be really helpful. I'd be happy with a feature that works just like Read The Docs:

screenshot from 2018-05-24 11-38-20

@ProElbs
Copy link

ProElbs commented Jan 29, 2021

Hello ! Hope you are having a good day !

Any news about this feature to be able to version API doc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests