Commit Graph

88 Commits

Author SHA1 Message Date
Roman Yurchak 0a1d87d45f
Customize build type in indexURL used by console.html (#3702)
[skip ci]
2023-03-29 22:06:59 +02:00
Ye Joo Park 90c10bbcd4
DOC Add a link to the GitHub repository (#3692) 2023-03-25 14:49:25 +01:00
Loïc Estève 21c4d5c23c
DOC use MyST inline attrs for external links (#3639)
[skip ci]
2023-03-07 18:10:27 +01:00
Gyeongjae Choi 71d466df2f
DOC Fix version warning CSS (#3533)
Close https://github.com/pyodide/pyodide/issues/3513
2023-02-04 14:49:11 +01:00
Gyeongjae Choi c633565983
Fix console.html url in docs (#3532) 2023-02-02 10:39:42 +09:00
Hood Chatham 441cddea0c
Refactor conf.py (#3512)
Instead of putting stuff behind `IN_SPHINX`, define functions and call them from the `setup` function. 
In these functions, if we want to expose variables as part of the config we have to assign to `app.config.some_var` which is more explicit.

We still have to make the path change at top level. To improve this, in the future we should:
1. rename the sphinx_pyodide folder to sphinx-pyodide
2. add a `pyproject.toml` and `setup.py` so we can `pip install -e` it
3. instead of modifying the path, source the virtual environment
2023-01-26 15:36:22 -08:00
Hood Chatham c06f4d5dfb
DOCS Fix console.html deploy (#3510)
Put `console.html` in `app.outdir`.

This was needed because readthedocs/readthedocs.org PR 9888 moved the outdir
2023-01-25 09:31:06 -08:00
Hood Chatham 8c5ae6ff9e
Update description of github releases in docs (#3498) 2023-01-24 13:11:31 -08:00
Hood Chatham 036f9cb545 Revert "0.23.0a1"
This reverts commit 2eaee0673d.
2023-01-24 07:30:10 -08:00
Hood Chatham 2eaee0673d 0.23.0a1 2023-01-23 21:45:09 -08:00
Hood Chatham 3b2952fc92
Python3.11 (#3252) 2023-01-23 19:45:59 -08:00
Hood Chatham 8a26af4f76
DOCS Improve JavaScript type rendering (#3481) 2023-01-22 09:26:42 +01:00
Hood Chatham 6972ff101d
DOCS Add sphinx cross referencing to MDN docs using intersphinx (#3477) 2023-01-20 11:21:44 +09:00
Hood Chatham 2801ffb0db
More updates to docstrings (#3466)
I added a new decorator called `@docs_argspec` to override the argument specification
of a function used in the docs by setting `func.__wraps__` to a fake function. This only
happens when building the docs, normally it is a no-op.

`@docs_argspec` is needed when using `@overload` because mypy requires the argspec
of the main function to be at least as general as the argspecs of all the overloads, which
causes suboptimal rendering in the api docs.
2023-01-18 14:13:37 -08:00
Hood Chatham 9b58bf4294
DOCS Remove ensure_argument_types and use autodoc-typehints feature for this (#3475)
Turns out there was a setting for this. Should have read the docs!
2023-01-18 14:13:17 -08:00
Hood Chatham eca4b1615e
Add sphinx-design, fix tabs (#3473)
In #3461 I dropped `sphinx-panels` but of course we *were* using it. It has a successor called
`sphinx-design` which works with sphinx 5.x (still not 6.x but we have several packages that cap 
sphinx <6). I also updated the use of the tabbed directive to the new sphinx-design api.
2023-01-17 22:35:30 -08:00
Hood Chatham 3cc6ac7873
Minor docs fixes (#3467)
Remove the property prefix from properties, add a link for ast.Module.

Previously this included more significant changes but they have been upstreamed into sphinx-autodoc-typehints.
2023-01-18 14:00:39 +09:00
Hood Chatham 4ff8687965
DOCS Fixes for shortcomings of napoleon (#3451)
I opened a PR for one of the Napoleon changes:
https://github.com/sphinx-doc/sphinx/pull/11131
But we use Sphinx v5.3 so even if we upstream Napoleon fixes into Sphinx v6.x, 
we won't get to use them for a while.
2023-01-16 19:59:07 -08:00
Hood Chatham e4421b94aa
Update docs requirements (#3461)
With this we can get up to Sphinx 5.3.0 (from Sphinx 4.5.0). I dropped sphinx-panels
since it has a version pin on Spinx < 5 (we don't seem to use it anyways). I moved to
sphinx-book-theme 0.4.0rc1 since version 0.3.0 pins Sphinx < 5. 

This is relevant because new versions of sphinx-autodoc-typehints require Sphinx>=5.3
so we can't pull in my fixes to sphinx-autodoc-typehints.

In the future, I would like for version caps (==, <, <=, and =~) to have comments
explaining them. I removed all the version caps since none of them seem to actively break.
In particular, we can now use jinja2 version 3 so we don't have to pin docutils 0.16.
2023-01-16 18:47:20 -08:00
Hood Chatham f55bb2e423
Cleanup of documentation configuration (#3448) 2023-01-14 15:01:20 +01:00
Hood Chatham e90154f3e2
DOCS Use autodoc typehints and make various improvements to autodoc rendering (#3405)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-01-04 11:51:09 +02:00
Gyeongjae Choi 8e965e57d4
0.22.0 (#3389)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-01-03 20:34:25 +09:00
Hood Chatham df3898f4c3
Fix 'version' in api docs (#3398)
The documentation generation seems to get confused by the default export and
displays the `version` field as `default` instead.  This switches to a normal export.
2023-01-01 10:44:35 -05:00
Gyeongjae Choi 4114f20986
DOC Fix various sphinx warnings (#3391)
Fix various sphinx build warnings.

I removed **all cross-references** in the changelog document. It causes trouble 
whenever we make an API change.
For example, Hood did some great work of splitting JsProxy classes into subclasses
in this release, but the changelog of older versions still contains cross-references to
`JsProxy.<method>` which doesn't exist anymore. It doesn't make sense to change it
to e.g. `JsBuffer.<method>` or `JsArray.<method>` as those classes are not available in
that version, so I think the reasonable option would be not using cross-references.
2022-12-27 19:17:23 -08:00
Hood Chatham 4f15bc8cc9
Add type parameters to JsProxy subtypes (#3387)
Added type parameters to `JsArray`, `JsMap`, `JsMutableMap`, etc. Based on 
[the typesheds for typing](https://github.com/python/typeshed/blob/main/stdlib/typing.pyi).
I skipped `JsCallable` and a few other more complicated types, those can be handled later.
2022-12-27 19:16:23 -08:00
Roman Yurchak fdbcc087e2
Add Pyodide CLI documentation (#3367)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-12-22 11:24:28 +01:00
Roman Yurchak 5f6ecca68d
Update to micropip v0.2.0 (#3347)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-12-14 09:11:19 +01:00
Hood Chatham 6416122130
DOCS: Get rid of those damn parentheses at the end of type names (#3270)
This has been bothering me for a long time. Fix discovered by trial and error.
The parens are getting added here:
https://github.com/sphinx-doc/sphinx/blob/master/sphinx/roles.py#L87
2022-11-20 18:52:19 -08:00
Hood Chatham f144514534 Revert "Version 0.22.0a3"
This reverts commit 0b4e19dbe1.
2022-11-10 11:15:57 -08:00
Hood Chatham 0b4e19dbe1 Version 0.22.0a3
Only difference between this and 0.22.0a2 is the sys.exit fix for
the command line runner (#3241). Just trying to get Pyodide working
in numpy CI...
2022-11-10 07:25:29 -08:00
Hood Chatham 9952a86f0f Revert "Version 0.22.0a2"
This reverts commit ef64c06f5b.
2022-11-09 19:15:51 -08:00
Hood Chatham ef64c06f5b Version 0.22.0a2 2022-11-09 13:09:59 -08:00
Hood Chatham 9a3365a6d0 Revert "0.22.0a1"
This reverts commit 13526ac8ff.
2022-09-24 18:37:03 -07:00
Hood Chatham 13526ac8ff 0.22.0a1 2022-09-24 18:36:46 -07:00
Hood Chatham 55ff2e3ba5
DOCS Make docs wider (#3136) 2022-09-20 21:03:18 -07:00
Roman Yurchak 4cdc054cb7
DOC Switch to Plausible analytics in the docs (#3004) 2022-08-23 09:15:11 +02:00
Hood Chatham 3eef0ed275 Bump version to 0.22.0.dev0 2022-08-09 21:49:23 +02:00
Gyeongjae Choi 5e412795ed
0.21.0 (#2935) 2022-08-09 15:36:10 +02:00
Gyeongjae Choi 047c8959f5
DOC Use dev CDN url if building latest docs (#2913)
[skip ci]
2022-07-26 10:30:31 +02:00
Hood Chatham ffd070a55e
0.21.0a3 (#2859) 2022-07-10 11:58:30 +02:00
Hood Chatham 516364e468
Move more functions into submodules of pyodide (#2790)
This resolves #2689.
2022-06-28 06:31:58 -07:00
Hood Chatham cd40765cc1 Revert "0.21.0a2"
This reverts commit c540ce9b9c.
2022-06-24 08:05:36 -07:00
Hood Chatham c540ce9b9c
0.21.0a2
This has to be alpha2 because I seem to have accidentally
published an alpha1 to npm.
2022-06-24 06:15:13 -07:00
Gyeongjae Choi a11f72e145
Simplify the version bump process (#2587) 2022-05-30 10:26:40 +09:00
Hood Chatham 952d9092a9 v0.21.0dev0 2022-04-09 13:50:07 -07:00
Hood Chatham 7a9273dd6c v0.20.0 2022-04-09 13:44:32 -07:00
Gyeongjae Choi 60d530801e
ENH Remove hard coded paths in `pyodide_build` (#2351)
We are pushing pyodide_build to PyPI as a Python package, but for now, 
installing pyodide_build from PyPI (i.e. pip install pyodide_build`) is almost 
useless because:

    there are bunch of hard-coded paths (e.g. Path(__file__).parents[2]),
    its dependencies are not specified in setup.cfg.

This PR is for mitigating this situation by removing hard-coded paths and
adding tests, and is also a preparation for our new CLI 
(https://github.com/pyodide/pyodide/issues/1977).
2022-04-09 13:41:10 -07:00
Hood Chatham 0e1e2ac01c
Python 3.10 (#2225) 2022-03-17 15:48:56 -07:00
Henry Schreiner 4f8b0a0344
chore: more pre-commit checking (#2257) 2022-03-07 21:51:20 -08:00
Henry Schreiner 8d00451142
chore: enable the rest of flake8 & bugbear (#2216) 2022-02-27 12:39:53 -05:00