This is demo for new feature of sphinx-revealjs
uv run save-pdf.py URL OUTPUT
version: '3' | |
vars: | |
# If you run bare environment or activated venv, set '' (blank string) | |
# RUN_PYTHON: 'uv run' | |
SPHINX_DEFAULT_BUILD: 'html' | |
SPHINX_SOURCE_DIR: 'content' | |
SPHINX_BUILD_DIR: 'build' | |
tasks: |
Please see `shorcuts.py` |
""" | |
Copyright 2023 attakei | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
// ==UserScript== | |
// @name Hide sidebar | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide sidebar of Twitter | |
// @author attakei | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// ==/UserScript== |
<html> | |
<head> | |
<script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
<py-env> | |
- docutils | |
- BeautifulSoup4 | |
</py-env> | |
<py-script output="output"> | |
from bs4 import BeautifulSoup | |
from docutils.core import publish_string |
from typing import Optional | |
from docutils import nodes | |
from sphinx.application import Sphinx | |
from sphinx.locale import admonitionlabels | |
from sphinx.writers.html5 import HTML5Translator | |
def visit_admonition(name: Optional[str] = None): | |
class_ = "message" if name is None else f"message is-{name}" |
# Maintainer: Your Name <[email protected]> | |
pkgname=gh-bin | |
pkgver=2.3.0 | |
pkgrel=1 | |
epoch= | |
pkgdesc="GitHub’s official command line tool (private AUR for install from binary)" | |
arch=('x86_64') | |
url="https://github.com/cli/cli/tree/v2.3.0" | |
license=('MIT') | |
groups=() |
#!/usr/bin/env python | |
import re | |
import sys | |
from pathlib import Path | |
VALID_TYPES = [ | |
# Rule 1 and 2. | |
"feat", "fix", | |
# Rule 4.(Optional) |
project = 'sphinx-revealjs-issue' | |
copyright = '2021, Kazuya Takei' | |
author = 'Kazuya Takei' | |
release = '2021.2.28' | |
extensions = [ | |
'sphinx.ext.todo', | |
'sphinx_revealjs', | |
] | |
templates_path = ['_templates'] |