From b68364fb66dadefa9fd73cea56deb7d09cccdd92 Mon Sep 17 00:00:00 2001 From: ChenYing Kuo Date: Fri, 4 Aug 2023 20:23:42 +0800 Subject: [PATCH] Fix the ReadTheDocs clang dependency (#237) --- .readthedocs.yaml | 8 +++++--- docs/conf.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index f3aa1f5af..71e28a0e8 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,6 +10,8 @@ build: os: ubuntu-22.04 tools: python: "3.11" + apt_packages: + - libclang-dev # Build documentation in the docs/ directory with Sphinx sphinx: @@ -17,6 +19,6 @@ sphinx: # We recommend specifying your dependencies to enable reproducible builds: # https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: docs/requirements.txt +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 37ff6729d..1d5c7d92c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,4 +48,4 @@ raise ValueError("Windows not supported yet for building docs.") else: - Config.set_library_file('/usr/lib/llvm-6.0/lib/libclang.so.1') # Required for readthedocs + Config.set_library_file('/usr/lib/llvm-14/lib/libclang.so.1') # Required for readthedocs