File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 58
58
run : |
59
59
source venv/bin/activate
60
60
python3.10 -m mypy .
61
+
62
+ docs :
63
+ runs-on : ubuntu-latest
64
+ steps :
65
+ - uses : actions/checkout@v1
66
+ - name : Set up Python
67
+ uses : actions/setup-python@v1
68
+ with :
69
+ python-version : " 3.10"
70
+ - name : Install dependencies
71
+ run : |
72
+ python3.10 -m venv venv
73
+ source venv/bin/activate
74
+ pip3 install --upgrade pip
75
+ python3.10 -m pip install -r requirements.txt
76
+ python3.10 setup.py install
77
+ - name : Generate Reference Docs
78
+ run : |
79
+ source venv/bin/activate
80
+ mkdir ./docs/build
81
+ ./docs/generate.sh --out=./docs/build/ --pypath=src/
82
+ - uses : actions/upload-artifact@v3
83
+ name : Upload Docs Preview
84
+ with :
85
+ name : reference-docs
86
+ path : ./docs/build/
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
# Copyright 2022 Google Inc.
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -96,6 +96,7 @@ mkdir _build
96
96
cat > conf.py << EOL
97
97
import devsite_translator.html
98
98
99
+ exclude_patterns = ['venv/**']
99
100
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon']
100
101
source_suffix = '.rst'
101
102
master_doc = 'index'
You can’t perform that action at this time.
0 commit comments