File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,17 @@ bazel_dep(name = "sphinx_rust", version = "0.0.0-dev")
7373local_path_override(module_name = " sphinx_rust" , path = " ../sphinx-rust" )
7474```
7575
76+ - __ docs-as-code__ /docs.bzl:
77+
78+ ``` python
79+ def _incremental ...
80+
81+ py_binary(
82+ name = incremental_name,
83+ srcs = [" @score_docs_as_code//src:incremental.py" ],
84+ deps = dependencies + [" @sphinx_rust//:sphinx_rust" ],
85+ ```
86+
7687- create the dummy_crate in __score__ with the following structure and content:
7788
7889```sh
@@ -116,4 +127,18 @@ mod tests {
116127 assert_eq!(result, 4 );
117128 }
118129}
119- ```
130+ ```
131+
132+ It can be tested using requirements.in from docs- as - code as well but this is not that reliable as bazel will cache sphinx- rust:
133+
134+ - in __docs- as - code__/ src/ requirements.in :
135+
136+ ```python
137+ sphinx- rust @ file :/// mnt/ d/ qorix/ forks/ sphinx- rust
138+ ```
139+
140+ - run pip packages update:
141+
142+ ```sh
143+ bazel run // src:requirements.update
144+ ```
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ classifiers = [
3737 " Topic :: Text Processing :: Markup" ,
3838]
3939dependencies = [
40- " sphinx~ =7.3"
40+ " sphinx> =7.3"
4141]
4242
4343[project .urls ]
You can’t perform that action at this time.
0 commit comments