~javiljoen/yatte

0e1aade199f4aec2184e33108070f2507805b6a2 — JA Viljoen 9 months ago 63334e5
Remove wiki task

The `wiki` branch and corresponding site at
<https://man.sr.ht/~javiljoen/yatte/> have also been deleted.
The manual.html page in the docs site is sufficient.

Obsolete references to Pandoc in the docs have also been removed.
4 files changed, 1 insertions(+), 20 deletions(-)

M .gitignore
M docs/doctasks.py
M docs/pages/development.html
M tasks.py
M .gitignore => .gitignore +0 -1
@@ 1,2 1,1 @@
/docs/_built/
/wiki/

M docs/doctasks.py => docs/doctasks.py +0 -16
@@ 59,22 59,6 @@ def upload_docs():
    run(f'curl --oauth2-bearer "$PAGES_SRHT_TOKEN" -Fcontent=@{tarball} {url}')


@task("wiki")
def update_wiki():
    """Update wiki from docs sources."""
    wiki = Path("wiki")

    if not wiki.is_dir():
        run(f"git clone --single-branch --no-tags -b wiki . {wiki}")

    render_man()
    man_md = wiki / "en_GB" / "yatte.1.md"

    if not is_newer(man_md, than=man):
        mkdir(man_md.parent)
        run(f"pandoc -f man -t markdown_strict {man} > {man_md}")


# Helper functions



M docs/pages/development.html => docs/pages/development.html +1 -2
@@ 25,11 25,10 @@
yatte check</code></pre>

<p><em>Note:</em>
  The <code>wiki</code> task has the following non-Python dependencies,
  The <code>man</code> task has the following non-Python dependency,
  which must be installed separately:</p>

<ul>
  <li><a href="https://pandoc.org">pandoc</a></li>
  <li><a href="https://git.sr.ht/~sircmpwn/scdoc">scdoc</a></li>
</ul>


M tasks.py => tasks.py +0 -1
@@ 18,7 18,6 @@ def install_dependencies():
    "Install development dependencies."
    run("pip install -r requirements.txt")
    check_installed("scdoc")
    check_installed("pandoc")


@task("typecheck")