File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1012,7 +1012,7 @@ docs/reqs:
1012
1012
1013
1013
DOC_TARGET ?= html
1014
1014
docs : docs/source/cmd/abc.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage docs/reqs
1015
- $(Q ) $(MAKE ) -C docs $(DOC_TARGET )
1015
+ $(Q ) YOSYS_VER= $( YOSYS_VER ) $(MAKE ) -C docs $(DOC_TARGET )
1016
1016
1017
1017
clean :
1018
1018
rm -rf share
Original file line number Diff line number Diff line change 63
63
extensions .append ('sphinx.ext.todo' )
64
64
todo_include_todos = False
65
65
66
+ # attempt to get version
67
+ env_yosys_ver = os .getenv ("YOSYS_VER" )
68
+ if env_yosys_ver :
69
+ if os .getenv ("READTHEDOCS" ) and os .getenv ("READTHEDOCS_VERSION" ) == "latest" :
70
+ release = env_yosys_ver + "-dev"
71
+ else :
72
+ release = env_yosys_ver
73
+
66
74
# custom cmd-ref parsing/linking
67
75
sys .path += [os .path .dirname (__file__ ) + "/../" ]
68
76
extensions .append ('util.cmdref' )
You can’t perform that action at this time.
0 commit comments