summaryrefslogtreecommitdiff
path: root/scripts/asciidoc2html.py
AgeCommit message (Collapse)Author
2021-03-29scripts: Fix asciidoc errorFlorian Bruhin
Fixup to 28bd35ed58f85f23570a9901094d550baa6bff1c
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2020-11-02mypy: use annotations for typing instead of commentsTim Brown
2020-09-16Simplify asciidoc argFlorian Bruhin
2020-07-18asciidoc2html: Fix linking of quickstart fileFlorian Bruhin
The change in #5559 was wrong: We want to link quickstart.html to doc/quickstart.html relatively *inside* the website copy, we don't want to link to the absolute path of the git repository. This happened to work on the old hoster, but broke after the server move to uberspace, where the webserver process isn't allowed to access files outside of the web document root.
2020-07-07scripts: Make asciidoc2html.py --web work outside the repositoryFlorian Bruhin
See #5559
2020-07-03scripts: Clean up REPO_ROOT in asciidoc2htmlFlorian Bruhin
- Use .resolve() and parents[1] for REPO_ROOT - Use the existing REPO_ROOT for sys.path.insert - Fix a syntax error
2020-07-03Merge remote-tracking branch 'origin/pr/5559'Florian Bruhin
2020-07-02scripts: Clean up finding asciidoc in asciidoc2htmlFlorian Bruhin
I've also tried to add asciidoc3 support, but with its asciidoc3.conf and asciidoc3_postinstall which creates ~/asciidoc3 (!) it doesn't really seem like a drop-in replacement.
2020-07-02Don't create more Path objectsAxel Dahlberg
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2020-07-02Update scripts/asciidoc2html.pyAxel Dahlberg
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2020-07-01Fixed paths in asciidoc2htmlAxel Dahlberg
2020-06-30Use Pygments from virtualenv's path in asciidoc2htmlFlorian Bruhin
This allows running mkvenv.py without having Pygments installed system-wide. Prepending to the PATH (rather than appending) so that the virtualenv's one is always used, so the system-wide one can be older or broken.
2020-06-26asciidoc2html: Resolve path for sys.pathFlorian Bruhin
For some reason, __file__ was "scripts/dev/../asciidoc2html.py", causing .parents[1] to point to "scripts/dev/" instead of "scripts/". See #5534
2020-06-24redo old editJulin S
2020-06-22use Path.read_textJulin S
2020-06-22Revert "fix error in asciidoc2html.py script"Julin S
This reverts commit 64ffce27f9348e14836528c0313d3048669a29c7.
2020-06-21Fix 3.5 incompatibility in scriptJulin S
2020-05-27fix error in asciidoc2html.py scriptJulin S
2020-04-20fix another pylint errorJulin S
2020-04-19fix pylint errorJulin S
2020-04-19add blank line between module docstring and importsJulin S
2020-04-19add type annotations to asciidoc2html scriptJulin S
2020-03-15add pathlib to asciidoc2html scriptJulin S
2020-03-15finish _build_website_file()Julin S
2020-03-15finish _build_website()Julin S
2020-03-15begin using pathlibJulin S
2020-01-27Generate docs as part of mkvenv.pyFlorian Bruhin
See #5186
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-10-01Specify 'check' with subprocess.runFlorian Bruhin
2019-02-22Update copyright for 2019Jay Kamat
2018-02-20use up to date cheatsheet images from repo instead of qutebrowser.orgMarco Zollinger
2018-02-05Update copyright yearsFlorian Bruhin
2017-12-20Fix stripping of lines in asciidoc2htmlFlorian Bruhin
This broke in #3382 since re.fullmatch does a different thing for trailing newlines: >>> line '===========\n' >>> re.match(r'^=+$', line) <_sre.SRE_Match object; span=(0, 11), match='==========='> >>> re.fullmatch(r'=+', line) >>> This now strips the line by default, and adds newlines if needed.
2017-12-15pylint: Re-enable bad-continuationFlorian Bruhin
And lots and lots of whitespace changes.
2017-12-15Add missing docstringsFlorian Bruhin
2017-12-11Modify re.match usage in scripts directory.George Edward Bulmer
2017-11-14Use https:// links for qutebrowser.orgFlorian Bruhin
Fixes #3289
2017-11-01use subprocess runGyorgy Orban
The usage of subprocess.run is recommended since python 3.5. Popen, check_call, call and check_output calls were replaced with run.
2017-10-31pylint: Turn off some more too-many-* stuff globallyFlorian Bruhin
Humans are just better at judging what's okay here than a machine.
2017-10-26Use Pygments for syntax highlightingFlorian Bruhin
2017-09-17Fix more file move issuesFlorian Bruhin
2017-09-17Move all documentation files to doc/Florian Bruhin
2017-07-21Shorten and update READMEFlorian Bruhin
2017-05-29Fix pylint issuePhilipp Hansch
2017-05-29Add TOC to installation instructionsPhilipp Hansch
This adds a Table of Contents to the installation instructions to improve the navigation within the document. I decided to use the command line to configure the TOC because there were problems with using just using an attribute entry in the document header. Specifically the insertion of the `header.asciidoc` into the resulting HTML file prevented the attribute entry approach from working. The TOC can now be inserted into any doc file using toc::[]
2017-05-09Finally update copyrights...Florian Bruhin
2017-03-13Don't keep temporary files around in asciidoc2htmlFlorian Bruhin
Fixes #2431
2016-07-12Use lists instead of tuples for comparingJan Verbeek
Per one of the diff comments on #1597: > I used to use a tuple for constant things, but nowadays I'd actually > prefer a list as a tuple is something more heterogeneous (i.e. it > makes sense to have a `(x, y)` point as a tuple, but a list of points > would be a list). > At some point I should probably change it to a list everywhere :wink: