Skip to content

Commit 2cdab62

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

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
@@ -24,6 +24,11 @@ RUN bash ./install_buck.sh && rm install_buck.sh
2424
COPY ./common/install_user.sh install_user.sh
2525
RUN bash ./install_user.sh && rm install_user.sh
2626

27+
# Install katex
28+
ARG KATEX
29+
COPY ./common/install_docs_reqs.sh install_docs_reqs.sh
30+
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
31+
2732
# Install conda and other dependencies
2833
ARG MINICONDA_VERSION
2934
ARG PYTHON_VERSION

0 commit comments

Comments
 (0)