-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
34 lines (32 loc) · 896 Bytes
/
.readthedocs.yaml
File metadata and controls
34 lines (32 loc) · 896 Bytes
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
---
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: ubuntu-lts-latest
tools:
rust: latest
apt_packages:
- libayatana-appindicator3-dev
- libglib2.0-dev
- libgtk-3-dev
- libxdo-dev
jobs:
build:
html:
- cargo doc --no-deps --workspace --verbose --color always
- mkdir -p ${READTHEDOCS_OUTPUT}html
- cp -r target/doc/. ${READTHEDOCS_OUTPUT}html/
# redirect index.html to html/koko/index.html
- |
cat <<EOF > ${READTHEDOCS_OUTPUT}html/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=koko/index.html">
</head>
<body></body>
</html>
EOF
- ls -alR ${READTHEDOCS_OUTPUT}html