-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple documentation versions
Adds support for building IDL v1 and v2 docs from the same repo. Docs from the main branch have been copied to docs/source-1.0. We've been updating these docs in-place, so the diff is a little noisy. Docs for IDL 2 are now in docs/source-2.0. All of the docs that were previously in docs/source are now here. Docs that are shared across both versions like ts-ssdk and implementations.rst are in docs/source-shared. 1.0 and 2.0 docs refer to these shared docs using symlinks (hope that works ok in git). Both 1.0 and 2.0 docs use a shared conf.py file. They load and compile the shared conf.py from their own dedicated conf.py files and then override the version number. We can override other settings here as well. This approach allows us to reuse the configuration and theme for both 1.0 and 2.0 docs with no added effort. This was chosen over a branch based strategy to avoid needing to duplicate configs or remember to update multiple branches. All docs will now be rooted under a version. So instead of /index.html, it's /1.0/index.html and /2.0/index.html. root-redirects/ contains HTML files that redirect /index.html to the latest version, /2.0/index.html (it does this for other top-level html files). The Makefile was simplified and updated to add html1 and html2 targets. The html target will build both, copy redirects, and merge the outputs into a single directory under build/html. This is the same directory we already use to package up docs. Because a version number is now at the top-level, docs that were previously under /1.0/ through the actually filename have now been moved up a level. So /1.0/guides is now at /guides/. Redirects were added for every file in this directory. This is nice because the 1.0 and 2.0 directory structures are the same _and_ the existing 1.0 links already used for things like /1.0/spec/index.html end up as the same link (we removed 1.0 from the rst filename, but add it back because we're now rooting docs under a version). There are still two TODOs for this update: 1. Adding a banner that 1.0 docs are deprecated. 2. Adding a way to jump between documentation versions. A few minor 1.0 vs 2.0 IDL tweaks were made in this update but I'm saving more of that for subsequent commits.
- Loading branch information
Showing
132 changed files
with
29,737 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<html> | ||
<head><meta http-equiv="refresh" content="0; url=2.0/implementations.html"/></head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<html> | ||
<head><meta http-equiv="refresh" content="0; url=2.0/index.html"/></head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<html> | ||
<head><meta http-equiv="refresh" content="0; url=2.0/quickstart.html"/></head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
shared_config = "../conf.py" | ||
exec(compile(source=open(shared_config).read(), filename=shared_config, mode='exec')) | ||
|
||
# Place any version specific overrides here. | ||
release = u'1.0' | ||
version = release |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.