sphinx-dynamic-command-builder 0.1.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/PKG-INFO +1 -1
  2. sphinx_dynamic_command_builder-0.2.1/examples/index.rst +62 -0
  3. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/pyproject.toml +1 -1
  4. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/src/sphinx_dynamic_command_builder/static/sphinx-dynamic-command-builder.css +13 -2
  5. sphinx_dynamic_command_builder-0.1.0/examples/index.rst +0 -57
  6. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/.gitignore +0 -0
  7. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/LICENSE +0 -0
  8. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/README.md +0 -0
  9. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/docs/conf.py +0 -0
  10. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/docs/configuration.md +0 -0
  11. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/docs/index.md +0 -0
  12. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/examples/README.md +0 -0
  13. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/examples/_static/example.css +0 -0
  14. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/examples/conf.py +0 -0
  15. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/src/sphinx_dynamic_command_builder/__init__.py +0 -0
  16. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/src/sphinx_dynamic_command_builder/directive.py +0 -0
  17. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/src/sphinx_dynamic_command_builder/static/sphinx-dynamic-command-builder.js +0 -0
  18. {sphinx_dynamic_command_builder-0.1.0 → sphinx_dynamic_command_builder-0.2.1}/tests/test_directive.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sphinx-dynamic-command-builder
3
- Version: 0.1.0
3
+ Version: 0.2.1
4
4
  Summary: Interactive command builders for Sphinx documentation
5
5
  Project-URL: Homepage, https://github.com/Aionw/sphinx-dynamic-command-builder
6
6
  Project-URL: Repository, https://github.com/Aionw/sphinx-dynamic-command-builder
@@ -0,0 +1,62 @@
1
+ sphinx-dynamic-command-builder example
2
+ ======================================
3
+
4
+ This page is built by Sphinx and renders the command builder through the
5
+ ``sphinx_dynamic_command_builder`` extension.
6
+
7
+ .. dynamic-command::
8
+
9
+ base: rg dynamic-command .
10
+ command_label: Search command
11
+ format:
12
+ line_break: options
13
+ indent: " "
14
+ options:
15
+ - label: Match mode
16
+ key: match_mode
17
+ default: smart
18
+ choices:
19
+ - label: Smart case
20
+ value: smart
21
+ args: --smart-case
22
+ - label: Case sensitive
23
+ value: sensitive
24
+ - label: Ignore case
25
+ value: ignore
26
+ args: --ignore-case
27
+ - label: Context
28
+ key: context
29
+ default: none
30
+ choices:
31
+ - label: None
32
+ value: none
33
+ - label: 2 lines
34
+ value: two
35
+ args: --context 2
36
+ - label: 5 lines
37
+ value: five
38
+ args: --context 5
39
+ - label: Files
40
+ key: files
41
+ default: normal
42
+ choices:
43
+ - label: Respect ignore files
44
+ value: normal
45
+ - label: Include hidden
46
+ value: hidden
47
+ args: --hidden
48
+ - label: Include ignored
49
+ value: ignored
50
+ args: --hidden --no-ignore
51
+ - label: Type filter
52
+ key: type
53
+ default: all
54
+ choices:
55
+ - label: All files
56
+ value: all
57
+ - label: Python
58
+ value: python
59
+ args: --type py
60
+ - label: Markdown
61
+ value: markdown
62
+ args: --type md
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sphinx-dynamic-command-builder"
7
- version = "0.1.0"
7
+ version = "0.2.1"
8
8
  description = "Interactive command builders for Sphinx documentation"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -32,7 +32,7 @@
32
32
  .sdc-command-label {
33
33
  color: var(--pst-color-text-muted, #57606a);
34
34
  font-size: 0.75rem;
35
- font-weight: 600;
35
+ font-weight: 700;
36
36
  letter-spacing: 0;
37
37
  line-height: 1.2;
38
38
  }
@@ -59,9 +59,21 @@
59
59
  font-size: 0.9rem;
60
60
  line-height: 1.2;
61
61
  padding: 0.42rem 0.68rem;
62
+ position: relative;
62
63
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
63
64
  }
64
65
 
66
+ .sdc-button + .sdc-button::before {
67
+ background: var(--pst-color-border, #d8dee4);
68
+ content: "";
69
+ height: 1rem;
70
+ left: -0.125rem;
71
+ position: absolute;
72
+ top: 50%;
73
+ transform: translateY(-50%);
74
+ width: 1px;
75
+ }
76
+
65
77
  .sdc-button.is-selected {
66
78
  background: var(--pst-color-primary, #0969da);
67
79
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
@@ -102,4 +114,3 @@
102
114
  width: 100%;
103
115
  }
104
116
  }
105
-
@@ -1,57 +0,0 @@
1
- sphinx-dynamic-command-builder example
2
- ==============================
3
-
4
- This page is built by Sphinx and renders the command builder through the
5
- ``sphinx_dynamic_command_builder`` extension.
6
-
7
- .. dynamic-command::
8
-
9
- base: python -m sglang.launch_server --model-path [model_path]
10
- command_label: Generated command
11
- format:
12
- line_break: options
13
- indent: " "
14
- options:
15
- - label: Integration path
16
- key: path
17
- default: hicache
18
- choices:
19
- - label: HiCache L3
20
- value: hicache
21
- env: MOONCAKE_MASTER=127.0.0.1:50051
22
- args: --enable-hierarchical-cache --hicache-storage-backend mooncake
23
- - label: PD disaggregation
24
- value: pd
25
- args: --disaggregation-mode prefill
26
- - label: Topology
27
- key: nodes
28
- default: single
29
- choices:
30
- - label: Single node
31
- value: single
32
- args: --host 0.0.0.0 --port 30000
33
- - label: Multi node
34
- value: multi
35
- args: --host 0.0.0.0 --port 30000 --disaggregation-ib-device mlx5_1
36
- - label: Parallelism
37
- key: tp
38
- default: "4"
39
- choices:
40
- - label: TP 1
41
- value: "1"
42
- args: --tp-size 1
43
- - label: TP 4
44
- value: "4"
45
- args: --tp-size 4
46
- - label: TP 8
47
- value: "8"
48
- args: --tp-size 8
49
- - label: Runtime
50
- key: runtime
51
- default: python
52
- choices:
53
- - label: Python module
54
- value: python
55
- - label: uv run
56
- value: uv
57
- base: uv run python -m sglang.launch_server --model-path [model_path]