summaryrefslogtreecommitdiff
path: root/doc/conf.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2023.Matthäus G. Chajdas2023-03-291-1/+1
|
* Fix lots of missing encoding="utf-8" parametersJean Abou Samra2023-01-311-2/+2
| | | | | Some of these are probably unnecessary (ASCII-only content), but it's easier not to think about it.
* Improve the languages list.Matthäus G. Chajdas2022-10-241-11/+1
| | | | | | * Move the generation into sphinext, similar to other overviews we have. * Generate a table instead of the plain list. This table contains links to the lexer class now.
* Support building docs when some plugins are installed (#2154)Jean Abou-Samra2022-06-041-6/+8
| | | | | | | | | | * Support building docs when some plugins are installed Pass plugins=False to get_all_lexers, otherwise we try to document them, which fail. For styles, use STYLE_MAP directly; given that I'm trying to introduce a new plugin interface, I'd rather not change get_all_styles to support plugins=False right now. * Add comment (and a fix)
* Overhaul demo and support running it locally (#2141)amitkummer2022-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Make target for building Pyodide with currently checked out Pygments Add a target to the documentation's Makefile to make Pyodide with Pygments from the current checkout. Additionally, use this target when building the documentation with the demo page. The new target works by building Pyodide on a Docker container, and then exporting the build artifacts back to the host. The Dockerfile used by the new target is based on the Dockerfile which was used for building Pyodide on the CI: https://github.com/pygments/pyodide-artifacts/blob/master/container/Dockerfile The main difference between the two is that the new Dockerfile uses the newest Pyodide base image, which is built by a repository which is actively maintained (the Iodide project is no longer maintained). The purpose of this change is to allow running the demo locally, which was not possible previously, as Pyodide was only built by the CI when deploying to Github Pages. * Add instructions on how to run the demo locally to the README * Update demo to work with Pyodide v0.20 Remove usage of Pyodide functionality which was deprecated in Pyodide v0.17: - Loading Pyodide using `languagePluginURL` and `languagePluginLoader`. - Access to globals via `pyodide.globals.x` has changed to `pyodide.globals.get("x")`. Source: https://pyodide.org/en/stable/project/release-notes/v0.17.0.html?highlight=languageplugin#api-changes * Fix #2137 * Fix use of `styles` variable before it's defined The `styles` variable was being used before it's value was set (which is done when Pyodide finishes loading). * Remove GitHub action for building Pyodide This action is obsolete, as building Pyodide is now done using `make pyodide`. * Upgrade Pages deployment action version * Add to .dockerignore all files in .gitignore * Change `pyodide` target to be a phony target
* Rework URL information in lexers.Matthäus G. Chajdas2022-03-201-1/+12
| | | | | | | | This commit adds a new url field to a lexer, which can be used to link to the language website, instead of relying on having the link in either languages.rst or the docstring of the lexer. Additionally, it changes the languages.rst file to auto-generate the list of lexers from the actual source code, using the provided URL.
* Happy new year.Georg Brandl2022-01-251-1/+1
|
* Provide an accurate count instead of "over 500".Matthäus G. Chajdas2021-12-291-0/+1
|
* demo: promote styles with a good contrastMartin Fischer2021-12-261-4/+5
|
* demo: make form usable while Pyodide is loadingMartin Fischer2021-12-261-0/+4
| | | | | | | | | | | | | | Previously the form could only be filled out after Pyodide finished loading (since the <select> options were generated via Pyodide). This commit changes this, so that the <select> options are already in the static HTML. The "Loading Python..." form overlay is removed, instead just the Highlight button is disabled, letting users fill out the form while Pyodide is loading. When a ?code query parameter is given a "Loading Python..." message is displayed below the form, since in that case users probably want to wait for the highlighted code (instead of filling out the form).
* Linkify GitHub issue/PR numbers in changelog (#1998)Martin Fischer2021-12-231-1/+18
|
* Fixes for LilyPond (#1968)Jean-Abou-Samra2021-11-211-13/+14
| | | | | | | | | | * LilyPond: update builtins to 2.23.4 * Doc: deduplicate LilyPond in language lists * Doc: exclude lilypond style from gallery Because it's specific to LilyPond code and doesn't give good results on Python code.
* Sort styles in gallery by background luminanceMartin Fischer2021-11-141-0/+10
|
* Promote styles meeting WCAG AA in styles gallery (#1954)Martin Fischer2021-11-141-11/+16
| | | Part of #1718.
* Add styles gallery to website (#1943)Martin Fischer2021-11-041-3/+22
|
* Run pyupgrade across codebase to modernize syntax and patterns (#1622)Jon Dufresne2021-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pyupgrade is a tool to automatically upgrade syntax for newer versions of the Python language. The project has been Python 3 only since 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups: - Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all source files as utf-8 by default. - Replace IOError/EnvironmentError with OSError. Python 3 unified these exceptions. The old names are aliases only. - Use the Python 3 shorter super() syntax. - Remove "utf8" argument form encode/decode. In Python 3, this value is the default. - Remove "r" from open() calls. In Python 3, this value is the default. - Remove u prefix from Unicode strings. In Python 3, all strings are Unicode. - Replace io.open() with builtin open(). In Python 3, these functions are functionally equivalent. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* Bump copyright year.Matthäus G. Chajdas2021-01-031-1/+1
|
* all: remove "u" string prefix (#1536)Georg Brandl2020-09-081-6/+6
| | | | | | | | | | | * all: remove "u" string prefix * util: remove unirange Since Python 3.3, all builds are wide unicode compatible. * unistring: remove support for narrow-unicode builds which stopped being relevant with Python 3.3
* Update copyright year (fixes #1514.)Matthäus G. Chajdas2020-08-221-1/+1
|
* add pyodide-based demo for the websiteGeorg Brandl2019-11-241-1/+12
|
* fix small issues in the docsGeorg Brandl2019-11-241-2/+2
|
* Fixup sidebars of standalone doc pages.Georg Brandl2019-11-101-28/+6
| | | | and other small fixups in the Sphinx config.
* Fix documentation build using Sphinx 2.0 (fixes #1501.)Matth?us G. Chajdas2019-04-021-2/+2
|
* merge default into stableGeorg Brandl2016-01-171-0/+241