Newer
Older
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
# This script produces the .rst files for each SciPost app.
# These files are then ingested by sphinx's make html command.
cd codebase/apps
# Traverse the different app types one by one
cd core
# NOTE: do NOT run sphinx-apidoc on app SciPost_v1 like for the other apps below,
# since SciPost_v1.settings.base.py must not be imported, potentially revealing
# the contents of secrets.json for the system on which sphinx-apidoc is run).
rm -rf SciPost_v1/*
sphinx-apidoc --separate -o SciPost_v1 ../../../../SciPost_v1 ../../../../SciPost_v1/settings ../../../../SciPost_v1/wsgi_*
for app in scipost common # SciPost_v1 must NOT be on this list (see above)
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../people
for app in colleges conflicts profiles
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../preprints
for app in preprints
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../editorial
for app in submissions
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../publishing
for app in journals proceedings series
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../publishing_other
for app in commentaries comments theses
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../metadata
for app in funders ontology organizations
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../production
for app in production
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../business
for app in careers finances sponsors
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../information
for app in guides
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../communications
for app in mailing_lists mails news notifications
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../utilities
for app in forums helpdesk invitations markup stats
do
rm -rf $app/*
sphinx-apidoc --separate -o $app/ ../../../../$app ../../../../$app/migrations
done
cd ../../..