File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
SHELL := /bin/bash
15
15
16
+ all : docs
17
+
16
18
# Install dependencies
17
19
.PHONY : install
18
20
install :
19
21
# Create python virtual environment
20
22
python3 -m venv venv/
21
23
22
- # Active virtual environment
23
- source ./venv/bin/activate
24
-
25
- # Install python depdendencies
26
- pip install -r requirements.txt
24
+ # Activate virtual environment and install dependencies
25
+ source ./venv/bin/activate && pip install -r requirements.txt
27
26
28
27
29
- # Build the documentation.
28
+ # Build the documentation
30
29
.PHONY : docs
31
- docs :
30
+ docs : install
32
31
# Ensure site dir exists
33
32
mkdir -p site
34
33
35
34
# Generate docs with mkdocs
36
- mkdocs build
35
+ source ./venv/bin/activate && mkdocs build
37
36
38
37
39
38
# Cleanup local directory
You can’t perform that action at this time.
0 commit comments