forked from easy-edx/edx-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-rtd-documents.sh
executable file
·47 lines (36 loc) · 1.53 KB
/
build-rtd-documents.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# This script invokes the REST API that builds edX Read the Docs projects
# for publicly visible documents.
# The script requires the curl HTTP client (installed by default in most
# Linux and Mac OSes) and a connection to the internet. Verify that you
# have curl installed by invoking the "curl --version" command in a
# terminal.
# To run this script, navigate to its directory and make sure the file is executable:
# C1MQH7NLG944:~ peterdesjardins$ chmod a+x build-rtd-documents.sh
# C1MQH7NLG944:~ peterdesjardins$ ls -l build-rtd-documents.sh
# -rwxr-xr-x 1 peterdesjardins staff 758 Feb 2 14:12 build-rtd-documents.sh
# Invoke the script from the command line:
# C1MQH7NLG944:~ peterdesjardins$ ./build-rtd-documents.sh
DOC_IDS="edx \
edx-partner-course-staff \
edx-insights \
devdata \
edx-guide-for-students \
edx-installing-configuring-and-running \
open-edx-building-and-running-a-course \
open-edx-learner-guide \
edx-developer-guide \
edx-open-learning-xml \
xblock-tutorial \
edx-release-notes
"
# xblock - Removed this project because it is failing local builds
# edx-platform-api - Removed from list because of its separate repo
# edx-data-analytics-api - Removed from list because of its separate repo
for DOC_ID in ${DOC_IDS}
do
# Report the document ID
echo "Building ${DOC_ID}"
# Invoke the build API for the document ID using curl
curl -X POST https://readthedocs.org/build/${DOC_ID}
done