-
Notifications
You must be signed in to change notification settings - Fork 53
Keep documentation for previous spec versions alongside draft
#505
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dcc5a08
Rudimentary pkg and folder-per-persion docs
honno 314d1a9
Move old `2021.12` docs to respective sub-folders
honno 0683c70
Merge older version of docs
honno f56de3c
Squashed previous all-versions work
honno c280699
Move 2022.12 docs into respective draft folders
honno 988f2f8
Empty commit for 2022.12 docs
honno b441471
Copy 2022.12 spec with preserved git history
honno c5afa38
Fix erroneous draft spec folder structure
honno c74b390
Resolve accidental merge artifact
honno ada9102
Fix `2021.12` building
honno 85df0ea
Fix `2022.12` building
honno a206273
Update all docs building
honno 58f2e59
Fix image refs, restore old images
honno 893d68f
Fix license page
honno f06c5a0
Update changelog refs
honno 6eb8df3
Standardise `dtype.__eq__` autodocs accross versions
honno 96a38c3
Minor grammar fixes
honno 399cd77
Update copyright date (after accidentally reverting it)
honno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
exclude README.md | ||
exclude src/_array_api_conf.py | ||
include PACKAGE.md |
This file contains hidden or 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,23 @@ | ||
# You can set these variables from the command line. | ||
SPHINXOPTS ?= -W --keep-going | ||
SOURCEDIR = spec | ||
BUILDDIR = _site | ||
|
||
.PHONY: default clean build | ||
|
||
default: clean build | ||
|
||
clean: | ||
-rm -rf $(BUILDDIR) | ||
-find . -type d -name generated -exec rm -rf {} + | ||
|
||
build: | ||
-mkdir -p $(BUILDDIR) | ||
-cp "$(SOURCEDIR)/_ghpages/_gitignore.txt" "$(BUILDDIR)/.gitignore" | ||
-cp "$(SOURCEDIR)/_ghpages/versions.json" "$(BUILDDIR)/versions.json" | ||
-cp "$(SOURCEDIR)/_ghpages/index.html" "$(BUILDDIR)/index.html" | ||
-touch "$(BUILDDIR)/.nojekyll" | ||
-sphinx-build "$(SOURCEDIR)/2021.12" "$(BUILDDIR)/2021.12" $(SPHINXOPTS) | ||
kgryte marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-sphinx-build "$(SOURCEDIR)/2022.12" "$(BUILDDIR)/2022.12" $(SPHINXOPTS) | ||
-cp -r "$(BUILDDIR)/2022.12" "$(BUILDDIR)/latest" | ||
-sphinx-build "$(SOURCEDIR)/draft" "$(BUILDDIR)/draft" $(SPHINXOPTS) |
This file contains hidden or 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,9 @@ | ||
# Stubs for the array API standard | ||
|
||
Documentation specific to singular Python objects in the spec (i.e., functions, | ||
methods and attributes) are in fact represented by stub objects in the package | ||
`array-api-stubs`. These stubs ultimately get rendered via the autodoc | ||
capabilities in Sphinx. | ||
|
||
TODO: describe how `array-api-stubs` can be used for tooling, once it actually | ||
has the capacity to do so. |
This file contains hidden or 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 hidden or 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,30 @@ | ||
[project] | ||
name = "array-api-stubs" | ||
version = "0.0.2" | ||
description = "Stubs for the array API standard" | ||
authors = [] | ||
license = {file = "LICENSE"} | ||
readme = "PACKAGE.md" | ||
requires-python = ">=3.8" | ||
keywords = [] | ||
classifiers = [] | ||
|
||
[project.urls] | ||
Source = "https://github.com/data-apis/array-api/" | ||
Documentation = "https://data-apis.org/array-api/" | ||
Homepage = "https://data-apis.org/" | ||
|
||
[project.optional-dependencies] | ||
doc = [ | ||
"sphinx==4.3.0", | ||
"sphinx-material==0.0.30", | ||
"myst-parser", | ||
"sphinx_markdown_tables", | ||
"sphinx_copybutton", | ||
"docutils<0.18", | ||
"sphinx-math-dollar", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.