File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 6
6
import shutil
7
7
import nox
8
8
9
- @nox .session (py = "3" )
9
+
10
+ nox .options .sessions = []
11
+
12
+
13
+ @nox .session ()
10
14
def translation (session ):
15
+ """
16
+ Build the gettext .pot files.
17
+ """
11
18
session .install ("-r" , "requirements.txt" )
12
19
target_dir = "locales"
13
20
session .run (
@@ -18,8 +25,11 @@ def translation(session):
18
25
target_dir , # where to put the .pot file
19
26
)
20
27
21
- @nox .session (py = "3" )
28
+ @nox .session ()
22
29
def build (session , autobuild = False ):
30
+ """
31
+ Make the website.
32
+ """
23
33
session .install ("-r" , "requirements.txt" )
24
34
25
35
target_build_dir = "build"
@@ -49,14 +59,20 @@ def build(session, autobuild=False):
49
59
)
50
60
51
61
52
- @nox .session (py = "3" )
62
+ @nox .session ()
53
63
def preview (session ):
64
+ """
65
+ Make and preview the website.
66
+ """
54
67
session .install ("sphinx-autobuild" )
55
68
build (session , autobuild = True )
56
69
57
70
58
- @nox .session (py = "3" )
71
+ @nox .session ()
59
72
def linkcheck (session ):
73
+ """
74
+ Check for broken links.
75
+ """
60
76
session .install ("-r" , "requirements.txt" )
61
77
session .run (
62
78
"sphinx-build" ,
You can’t perform that action at this time.
0 commit comments