summaryrefslogtreecommitdiff
path: root/doc/_templates
Commit message (Collapse)AuthorAgeFilesLines
* Improve the languages list.Matthäus G. Chajdas2022-10-241-31/+0
| | | | | | * 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.
* Rework URL information in lexers.Matthäus G. Chajdas2022-03-201-0/+31
| | | | | | | | 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.
* Add link to changelog in sidebar.Matthäus G. Chajdas2021-12-291-10/+1
|
* demo: remove Highlight button (update automatically)Martin Fischer2021-12-261-6/+4
|
* demo: display warning for styles with poor contrastsMartin Fischer2021-12-261-1/+2
|
* demo: support tokens formatterMartin Fischer2021-12-261-0/+7
|
* demo: streamline interface (and improve accessibility)Martin Fischer2021-12-261-27/+38
| | | | | | | | | | * "Try out Pygments!" is more descriptive than "Try it out!" * Moved the description of the implementation to the end. * Added a <noscript> tag suggesting `pip install` and pygmentize. * Added a <label> for the textarea. * Disable spell checking for the textarea. * Reduced the scope of the reset button to the file input. * Added autofocus for the language select.
* demo: fix lexer guessing based on filenameMartin Fischer2021-12-261-1/+1
|
* demo: clean up markupMartin Fischer2021-12-261-16/+23
|
* demo: instantly apply style changes by avoiding re-lexingMartin Fischer2021-12-261-9/+15
|
* demo: promote styles with a good contrastMartin Fischer2021-12-261-2/+9
|
* demo: guess lexer if none selectedMartin Fischer2021-12-261-6/+6
|
* demo: disable copy link when URI too long for web serverMartin Fischer2021-12-261-0/+1
|
* demo: stop using deprecated Document.execCommand()Martin Fischer2021-12-261-2/+1
| | | | Use the modern navigator.clipboard API instead.
* demo: stop blocking main thread by using web workerMartin Fischer2021-12-261-3/+1
| | | | | | | | | | Previously highlighting a large file with a complex lexer just hung the whole browser tab (meaning you couldn't interact with the page anymore). This commit outsources the higlighting to another thread by using a web worker. Depending on web workers shouldn't reduce browser compatability since the page already depends on WASM (and according to caniuse.com any browser that supports WASM also supports web workers).
* demo: make form usable while Pyodide is loadingMartin Fischer2021-12-261-7/+13
| | | | | | | | | | | | | | 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).
* Promote styles meeting WCAG AA in styles gallery (#1954)Martin Fischer2021-11-141-7/+26
| | | Part of #1718.
* Restore pre background color on websiteMartin Fischer2021-11-041-0/+3
| | | | | Was removed in 5a987b8af8dcbddcbd5cade37adebed5b5dd99f1 but that introduced unintended changes.
* Add styles gallery to website (#1943)Martin Fischer2021-11-041-0/+33
|
* Make pygments.org website responsive (#1942)Martin Fischer2021-11-031-1/+4
|
* doc/demo: add ability to highlight text given in url query; copy link featureGeorg Brandl2020-12-161-0/+3
|
* demo: rebuild WASM with every pushGeorg Brandl2020-09-011-2/+1
|
* demo: show Pygments version in useGeorg Brandl2020-09-011-0/+1
|
* Fix broken link in doc/_templates/indexsidebar.html (#1515)Richard Si2020-08-201-1/+1
|
* all: fixup http->https for github, pypi, pocoo etc URLsGeorg Brandl2019-12-101-4/+4
|
* make download feature more compatible, credit to PyodideGeorg Brandl2019-11-241-5/+7
|
* add feature to download generated HTMLGeorg Brandl2019-11-241-0/+4
|
* add pyodide-based demo for the websiteGeorg Brandl2019-11-243-0/+48
|
* Update hg/bitbucket -> git/github everywhere.Georg Brandl2019-11-101-5/+6
|
* Remove link to pocoo channelJoão Almeida2019-10-031-5/+3
| | | | Now it's gone :)
* merge default into stableGeorg Brandl2016-01-172-0/+28