mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
Switched from "run-tests.sh" script to package manager scripts
This commit is contained in:
17
scripts/test_docs.py
Normal file
17
scripts/test_docs.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2025 I-Form Advanced Manufacturing Research Centre.
|
||||
#
|
||||
# invenio-config-iform is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||
# details.
|
||||
|
||||
"""A script for testing sphinx documentation building."""
|
||||
|
||||
from sphinx.cmd.build import main as build_docs
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Attempt to build documentation."""
|
||||
build_docs(["-nN", "docs", "docs/_build/html"])
|
||||
build_docs(["-nN", "-b", "doctest", "docs", "docs/_build/doctest"])
|
||||
Reference in New Issue
Block a user