Skip to content

Commit c5e4212

Browse files
JacobSzwejbkafacebook-github-bot
authored andcommitted
add cpp api reference (#618)
Summary: Pull Request resolved: #618 Differential Revision: D49924199
1 parent 5e2e6ce commit c5e4212

File tree

7 files changed

+2579
-1
lines changed

7 files changed

+2579
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
if [ -n "$KATEX" ]; then
6+
apt-get update
7+
# Ignore error if gpg-agent doesn't exist (for Ubuntu 16.04)
8+
apt-get install -y gpg-agent || :
9+
10+
curl --retry 3 -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
11+
sudo apt-get install -y nodejs
12+
13+
curl --retry 3 -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
14+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
15+
16+
apt-get update
17+
apt-get install -y --no-install-recommends yarn
18+
yarn global add katex --prefix /usr/local
19+
20+
sudo apt-get -y install doxygen
21+
22+
apt-get autoclean && apt-get clean
23+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
24+
25+
fi

.ci/docker/requirements-ci.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ hypothesis==6.84.2
1515
parameterized==0.9.0
1616

1717
# Doc build requirements
18-
sphinx==5.0.0
18+
sphinx==4.5.0
1919
sphinx-gallery
20+
breathe==4.35.0
21+
exhale==0.3.6
22+
docutils==0.16
2023
matplotlib
2124
# PyTorch Theme
2225
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme

.ci/docker/ubuntu/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ COPY ./common/install_conda.sh install_conda.sh
3838
COPY ./common/utils.sh utils.sh
3939
RUN bash ./install_conda.sh && rm install_conda.sh utils.sh /opt/conda/requirements-ci.txt /opt/conda/conda-env-ci.txt
4040

41+
# Install katex
42+
ARG KATEX
43+
COPY ./common/install_docs_reqs.sh install_docs_reqs.sh
44+
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
45+
4146
ARG LINTRUNNER
4247
# Install lintrunner if needed
4348
COPY ./common/install_linter.sh install_linter.sh

0 commit comments

Comments
 (0)