forkbit-sdk 0.1.0__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 (32) hide show
  1. forkbit_sdk-0.1.0/.gitignore +357 -0
  2. forkbit_sdk-0.1.0/LICENSE +21 -0
  3. forkbit_sdk-0.1.0/PKG-INFO +140 -0
  4. forkbit_sdk-0.1.0/README.md +112 -0
  5. forkbit_sdk-0.1.0/docs/_static/versioning.css +44 -0
  6. forkbit_sdk-0.1.0/docs/_templates/versioning.html +15 -0
  7. forkbit_sdk-0.1.0/docs/api/base_plugin.rst +7 -0
  8. forkbit_sdk-0.1.0/docs/api/git_client.rst +10 -0
  9. forkbit_sdk-0.1.0/docs/changelog.rst +10 -0
  10. forkbit_sdk-0.1.0/docs/conf.py +62 -0
  11. forkbit_sdk-0.1.0/docs/index.rst +35 -0
  12. forkbit_sdk-0.1.0/docs/tutorial/build.rst +94 -0
  13. forkbit_sdk-0.1.0/docs/tutorial/data.rst +65 -0
  14. forkbit_sdk-0.1.0/docs/tutorial/git.rst +78 -0
  15. forkbit_sdk-0.1.0/docs/tutorial/index.rst +38 -0
  16. forkbit_sdk-0.1.0/docs/tutorial/scaffold.rst +75 -0
  17. forkbit_sdk-0.1.0/docs/tutorial/settings.rst +82 -0
  18. forkbit_sdk-0.1.0/docs/tutorial/translation.rst +61 -0
  19. forkbit_sdk-0.1.0/docs/tutorial/ui.rst +78 -0
  20. forkbit_sdk-0.1.0/publish.sh +78 -0
  21. forkbit_sdk-0.1.0/pyproject.toml +47 -0
  22. forkbit_sdk-0.1.0/src/forkbit_sdk/__init__.py +5 -0
  23. forkbit_sdk-0.1.0/src/forkbit_sdk/base_plugin.py +238 -0
  24. forkbit_sdk-0.1.0/src/forkbit_sdk/cli.py +41 -0
  25. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/__init__.py +0 -0
  26. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/_shared.py +183 -0
  27. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/build.py +72 -0
  28. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/init_plugin.py +117 -0
  29. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/release.py +239 -0
  30. forkbit_sdk-0.1.0/src/forkbit_sdk/commands/validate.py +245 -0
  31. forkbit_sdk-0.1.0/src/forkbit_sdk/git_client.py +91 -0
  32. forkbit_sdk-0.1.0/src/forkbit_sdk/ipc_client.py +77 -0
@@ -0,0 +1,357 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/python,qt,qtcreator,visualstudiocode,macos,windows,linux
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python,qt,qtcreator,visualstudiocode,macos,windows,linux
3
+
4
+ ### Linux ###
5
+ *~
6
+
7
+ # temporary files which can be created if a process still has a handle open of a deleted file
8
+ .fuse_hidden*
9
+
10
+ # KDE directory preferences
11
+ .directory
12
+
13
+ # Linux trash folder which might appear on any partition or disk
14
+ .Trash-*
15
+
16
+ # .nfs files are created when an open file is removed but is still being accessed
17
+ .nfs*
18
+
19
+ ### macOS ###
20
+ # General
21
+ .DS_Store
22
+ .AppleDouble
23
+ .LSOverride
24
+
25
+ # Icon must end with two \r
26
+ Icon
27
+
28
+
29
+ # Thumbnails
30
+ ._*
31
+
32
+ # Files that might appear in the root of a volume
33
+ .DocumentRevisions-V100
34
+ .fseventsd
35
+ .Spotlight-V100
36
+ .TemporaryItems
37
+ .Trashes
38
+ .VolumeIcon.icns
39
+ .com.apple.timemachine.donotpresent
40
+
41
+ # Directories potentially created on remote AFP share
42
+ .AppleDB
43
+ .AppleDesktop
44
+ Network Trash Folder
45
+ Temporary Items
46
+ .apdisk
47
+
48
+ ### macOS Patch ###
49
+ # iCloud generated files
50
+ *.icloud
51
+
52
+ ### Python ###
53
+ # Byte-compiled / optimized / DLL files
54
+ __pycache__/
55
+ *.py[cod]
56
+ *$py.class
57
+
58
+ # C extensions
59
+ *.so
60
+
61
+ # Distribution / packaging
62
+ .Python
63
+ develop-eggs/
64
+ dist/
65
+ downloads/
66
+ eggs/
67
+ .eggs/
68
+ lib/
69
+ lib64/
70
+ parts/
71
+ sdist/
72
+ var/
73
+ wheels/
74
+ share/python-wheels/
75
+ *.egg-info/
76
+ .installed.cfg
77
+ *.egg
78
+ MANIFEST
79
+
80
+ # PyInstaller
81
+ # Usually these files are written by a python script from a template
82
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
83
+ *.manifest
84
+ *.spec
85
+
86
+ # Installer logs
87
+ pip-log.txt
88
+ pip-delete-this-directory.txt
89
+
90
+ # Unit test / coverage reports
91
+ htmlcov/
92
+ .tox/
93
+ .nox/
94
+ .coverage
95
+ .coverage.*
96
+ .cache
97
+ nosetests.xml
98
+ coverage.xml
99
+ *.cover
100
+ *.py,cover
101
+ .hypothesis/
102
+ .pytest_cache/
103
+ cover/
104
+
105
+ # Translations
106
+ *.mo
107
+ *.pot
108
+
109
+ # Django stuff:
110
+ *.log
111
+ local_settings.py
112
+ db.sqlite3
113
+ db.sqlite3-journal
114
+
115
+ # Flask stuff:
116
+ instance/
117
+ .webassets-cache
118
+
119
+ # Scrapy stuff:
120
+ .scrapy
121
+
122
+ # Sphinx documentation
123
+ docs/_build/
124
+
125
+ # PyBuilder
126
+ .pybuilder/
127
+ target/
128
+
129
+ # Jupyter Notebook
130
+ .ipynb_checkpoints
131
+
132
+ # IPython
133
+ profile_default/
134
+ ipython_config.py
135
+
136
+ # pyenv
137
+ # For a library or package, you might want to ignore these files since the code is
138
+ # intended to run in multiple environments; otherwise, check them in:
139
+ # .python-version
140
+
141
+ # pipenv
142
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
143
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
144
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
145
+ # install all needed dependencies.
146
+ #Pipfile.lock
147
+
148
+ # poetry
149
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
150
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
151
+ # commonly ignored for libraries.
152
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
153
+ #poetry.lock
154
+
155
+ # pdm
156
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
157
+ #pdm.lock
158
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
159
+ # in version control.
160
+ # https://pdm.fming.dev/#use-with-ide
161
+ .pdm.toml
162
+
163
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
164
+ __pypackages__/
165
+
166
+ # Celery stuff
167
+ celerybeat-schedule
168
+ celerybeat.pid
169
+
170
+ # SageMath parsed files
171
+ *.sage.py
172
+
173
+ # Environments
174
+ .env
175
+ .venv
176
+ env/
177
+ venv/
178
+ ENV/
179
+ env.bak/
180
+ venv.bak/
181
+
182
+ # Spyder project settings
183
+ .spyderproject
184
+ .spyproject
185
+
186
+ # Rope project settings
187
+ .ropeproject
188
+
189
+ # mkdocs documentation
190
+ /site
191
+
192
+ # mypy
193
+ .mypy_cache/
194
+ .dmypy.json
195
+ dmypy.json
196
+
197
+ # Pyre type checker
198
+ .pyre/
199
+
200
+ # pytype static type analyzer
201
+ .pytype/
202
+
203
+ # Cython debug symbols
204
+ cython_debug/
205
+
206
+ # PyCharm
207
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
208
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
209
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
210
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
211
+ #.idea/
212
+
213
+ ### Python Patch ###
214
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
215
+ poetry.toml
216
+
217
+ # ruff
218
+ .ruff_cache/
219
+
220
+ # LSP config files
221
+ pyrightconfig.json
222
+
223
+ ### Qt ###
224
+ # C++ objects and libs
225
+ *.slo
226
+ *.lo
227
+ *.o
228
+ *.a
229
+ *.la
230
+ *.lai
231
+ *.so.*
232
+ *.dll
233
+ *.dylib
234
+
235
+ # Qt-es
236
+ object_script.*.Release
237
+ object_script.*.Debug
238
+ *_plugin_import.cpp
239
+ /.qmake.cache
240
+ /.qmake.stash
241
+ *.pro.user
242
+ *.pro.user.*
243
+ *.qbs.user
244
+ *.qbs.user.*
245
+ *.moc
246
+ moc_*.cpp
247
+ moc_*.h
248
+ qrc_*.cpp
249
+ ui_*.h
250
+ *.qmlc
251
+ *.jsc
252
+ Makefile*
253
+ *build-*
254
+ *.qm
255
+ *.prl
256
+
257
+ # Qt unit tests
258
+ target_wrapper.*
259
+
260
+ # QtCreator
261
+ *.autosave
262
+
263
+ # QtCreator Qml
264
+ *.qmlproject.user
265
+ *.qmlproject.user.*
266
+
267
+ # QtCreator CMake
268
+ CMakeLists.txt.user*
269
+
270
+ # QtCreator 4.8< compilation database
271
+ compile_commands.json
272
+
273
+ # QtCreator local machine specific files for imported projects
274
+ *creator.user*
275
+
276
+ *_qmlcache.qrc
277
+
278
+ ### QtCreator ###
279
+ # gitignore for Qt Creator like IDE for pure C/C++ project without Qt
280
+ #
281
+ # Reference: http://doc.qt.io/qtcreator/creator-project-generic.html
282
+
283
+
284
+
285
+ # Qt Creator autogenerated files
286
+
287
+
288
+ # A listing of all the files included in the project
289
+ *.files
290
+
291
+ # Include directories
292
+ *.includes
293
+
294
+ # Project configuration settings like predefined Macros
295
+ *.config
296
+
297
+ # Qt Creator settings
298
+ *.creator
299
+
300
+ # User project settings
301
+ *.creator.user*
302
+
303
+ # Qt Creator backups
304
+
305
+ # Flags for Clang Code Model
306
+ *.cxxflags
307
+ *.cflags
308
+
309
+
310
+ ### VisualStudioCode ###
311
+ .vscode/*
312
+ !.vscode/settings.json
313
+ !.vscode/tasks.json
314
+ !.vscode/launch.json
315
+ !.vscode/extensions.json
316
+ !.vscode/*.code-snippets
317
+
318
+ # Local History for Visual Studio Code
319
+ .history/
320
+
321
+ # Built Visual Studio Code Extensions
322
+ *.vsix
323
+
324
+ ### VisualStudioCode Patch ###
325
+ # Ignore all local history of files
326
+ .history
327
+ .ionide
328
+
329
+ ### Windows ###
330
+ # Windows thumbnail cache files
331
+ Thumbs.db
332
+ Thumbs.db:encryptable
333
+ ehthumbs.db
334
+ ehthumbs_vista.db
335
+
336
+ # Dump file
337
+ *.stackdump
338
+
339
+ # Folder config file
340
+ [Dd]esktop.ini
341
+
342
+ # Recycle Bin used on file shares
343
+ $RECYCLE.BIN/
344
+
345
+ # Windows Installer files
346
+ *.cab
347
+ *.msi
348
+ *.msix
349
+ *.msm
350
+ *.msp
351
+
352
+ # Windows shortcuts
353
+ *.lnk
354
+
355
+ # End of https://www.toptal.com/developers/gitignore/api/python,qt,qtcreator,visualstudiocode,macos,windows,linux
356
+
357
+ .claude
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ForkBit
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,140 @@
1
+ Metadata-Version: 2.4
2
+ Name: forkbit-sdk
3
+ Version: 0.1.0
4
+ Summary: Plugin SDK for building ForkBit plugins
5
+ Project-URL: Homepage, https://forkbit.de
6
+ Project-URL: Documentation, https://docs.forkbit.de
7
+ Author-email: ForkBit <hello@forkbit.de>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: app-store,forkbit,plugin,pyside6,qt,sdk
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
19
+ Requires-Python: >=3.13
20
+ Requires-Dist: pyside6>=6.11
21
+ Provides-Extra: docs
22
+ Requires-Dist: furo; extra == 'docs'
23
+ Requires-Dist: sphinx-autobuild; extra == 'docs'
24
+ Requires-Dist: sphinx-copybutton; extra == 'docs'
25
+ Requires-Dist: sphinx-multiversion; extra == 'docs'
26
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # ForkBit SDK
30
+
31
+ Build plugins for [ForkBit](https://forkbit.de) — the desktop app for managing app store workflows.
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ pip install forkbit-sdk
37
+ ```
38
+
39
+ ## Quick Start
40
+
41
+ Create a new plugin:
42
+
43
+ ```bash
44
+ forkbit plugin init my_plugin
45
+ ```
46
+
47
+ This generates a ready-to-run plugin scaffold:
48
+
49
+ ```
50
+ my_plugin/
51
+ plugin.json — manifest (id, name, version, dependencies)
52
+ main.py — your plugin code (BasePlugin subclass)
53
+ settings.json — settings schema
54
+ ```
55
+
56
+ ## Writing a Plugin
57
+
58
+ Every plugin is a `BasePlugin` subclass that builds its UI in `on_ready()`:
59
+
60
+ ```python
61
+ from PySide6.QtCore import Qt
62
+ from PySide6.QtWidgets import QLabel, QVBoxLayout
63
+
64
+ from forkbit_sdk import BasePlugin
65
+
66
+
67
+ class MyPlugin(BasePlugin):
68
+
69
+ def on_ready(self) -> None:
70
+ layout = QVBoxLayout(self.container)
71
+ layout.setAlignment(Qt.AlignmentFlag.AlignTop)
72
+
73
+ label = QLabel("Hello from my plugin!")
74
+ layout.addWidget(label)
75
+ ```
76
+
77
+ Your plugin inherits the app's theme automatically — standard PySide6 widgets just work.
78
+
79
+ ## Plugin API
80
+
81
+ | Property / Method | Description |
82
+ |---|---|
83
+ | `self.container` | QWidget — build your UI inside this |
84
+ | `self.settings` | dict — current plugin settings values |
85
+ | `self.project_id` | str — current project ID |
86
+ | `self.project_path` | str — path to the project directory |
87
+ | `self.data_dir` | Path — per-instance storage directory |
88
+ | `self.git` | GitClient — git operations (status, tags, push, pull, commit) |
89
+ | `self.read_json(filename)` | Read JSON from data_dir |
90
+ | `self.write_json(filename, data)` | Atomic-write JSON to data_dir |
91
+ | `self.notify(message, level)` | Show a toast notification |
92
+ | `self.translate(text, src, tgt, on_done, on_error)` | Async translation |
93
+ | `self.set_subtitle(text)` | Update the plugin header subtitle |
94
+ | `self.secret_file(field_id)` | Get raw bytes of a secret file setting |
95
+ | `on_ready()` | Override to build UI and initialize state |
96
+ | `on_settings_changed(settings)` | Override to react to settings changes |
97
+
98
+ ## Settings Schema
99
+
100
+ Define user-configurable settings in `settings.json`:
101
+
102
+ ```json
103
+ {
104
+ "fields": [
105
+ { "id": "api_key", "label": "API Key", "type": "password" },
106
+ { "id": "auto_sync", "label": "Auto-sync on save", "type": "bool", "default": true }
107
+ ]
108
+ }
109
+ ```
110
+
111
+ Supported types: `text`, `password`, `textarea`, `bool`, `secret_file`.
112
+
113
+ ## Plugin Manifest
114
+
115
+ `plugin.json` defines your plugin's metadata:
116
+
117
+ ```json
118
+ {
119
+ "id": "com.mycompany.myplugin",
120
+ "name": "My Plugin",
121
+ "version": "1.0.0",
122
+ "description": "What it does",
123
+ "entry": "main.py",
124
+ "min_app_version": "0.2.0",
125
+ "requirements": []
126
+ }
127
+ ```
128
+
129
+ ## CLI Commands
130
+
131
+ ```bash
132
+ forkbit plugin init [dir] # scaffold a new plugin
133
+ forkbit plugin validate [dir] # check manifest and imports
134
+ forkbit plugin build [dir] # build for current platform
135
+ forkbit plugin release [dir] # build for all platforms
136
+ ```
137
+
138
+ ## License
139
+
140
+ MIT
@@ -0,0 +1,112 @@
1
+ # ForkBit SDK
2
+
3
+ Build plugins for [ForkBit](https://forkbit.de) — the desktop app for managing app store workflows.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install forkbit-sdk
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ Create a new plugin:
14
+
15
+ ```bash
16
+ forkbit plugin init my_plugin
17
+ ```
18
+
19
+ This generates a ready-to-run plugin scaffold:
20
+
21
+ ```
22
+ my_plugin/
23
+ plugin.json — manifest (id, name, version, dependencies)
24
+ main.py — your plugin code (BasePlugin subclass)
25
+ settings.json — settings schema
26
+ ```
27
+
28
+ ## Writing a Plugin
29
+
30
+ Every plugin is a `BasePlugin` subclass that builds its UI in `on_ready()`:
31
+
32
+ ```python
33
+ from PySide6.QtCore import Qt
34
+ from PySide6.QtWidgets import QLabel, QVBoxLayout
35
+
36
+ from forkbit_sdk import BasePlugin
37
+
38
+
39
+ class MyPlugin(BasePlugin):
40
+
41
+ def on_ready(self) -> None:
42
+ layout = QVBoxLayout(self.container)
43
+ layout.setAlignment(Qt.AlignmentFlag.AlignTop)
44
+
45
+ label = QLabel("Hello from my plugin!")
46
+ layout.addWidget(label)
47
+ ```
48
+
49
+ Your plugin inherits the app's theme automatically — standard PySide6 widgets just work.
50
+
51
+ ## Plugin API
52
+
53
+ | Property / Method | Description |
54
+ |---|---|
55
+ | `self.container` | QWidget — build your UI inside this |
56
+ | `self.settings` | dict — current plugin settings values |
57
+ | `self.project_id` | str — current project ID |
58
+ | `self.project_path` | str — path to the project directory |
59
+ | `self.data_dir` | Path — per-instance storage directory |
60
+ | `self.git` | GitClient — git operations (status, tags, push, pull, commit) |
61
+ | `self.read_json(filename)` | Read JSON from data_dir |
62
+ | `self.write_json(filename, data)` | Atomic-write JSON to data_dir |
63
+ | `self.notify(message, level)` | Show a toast notification |
64
+ | `self.translate(text, src, tgt, on_done, on_error)` | Async translation |
65
+ | `self.set_subtitle(text)` | Update the plugin header subtitle |
66
+ | `self.secret_file(field_id)` | Get raw bytes of a secret file setting |
67
+ | `on_ready()` | Override to build UI and initialize state |
68
+ | `on_settings_changed(settings)` | Override to react to settings changes |
69
+
70
+ ## Settings Schema
71
+
72
+ Define user-configurable settings in `settings.json`:
73
+
74
+ ```json
75
+ {
76
+ "fields": [
77
+ { "id": "api_key", "label": "API Key", "type": "password" },
78
+ { "id": "auto_sync", "label": "Auto-sync on save", "type": "bool", "default": true }
79
+ ]
80
+ }
81
+ ```
82
+
83
+ Supported types: `text`, `password`, `textarea`, `bool`, `secret_file`.
84
+
85
+ ## Plugin Manifest
86
+
87
+ `plugin.json` defines your plugin's metadata:
88
+
89
+ ```json
90
+ {
91
+ "id": "com.mycompany.myplugin",
92
+ "name": "My Plugin",
93
+ "version": "1.0.0",
94
+ "description": "What it does",
95
+ "entry": "main.py",
96
+ "min_app_version": "0.2.0",
97
+ "requirements": []
98
+ }
99
+ ```
100
+
101
+ ## CLI Commands
102
+
103
+ ```bash
104
+ forkbit plugin init [dir] # scaffold a new plugin
105
+ forkbit plugin validate [dir] # check manifest and imports
106
+ forkbit plugin build [dir] # build for current platform
107
+ forkbit plugin release [dir] # build for all platforms
108
+ ```
109
+
110
+ ## License
111
+
112
+ MIT
@@ -0,0 +1,44 @@
1
+ .version-switcher {
2
+ padding: 0 var(--sidebar-item-spacing-horizontal);
3
+ margin-bottom: 1rem;
4
+ }
5
+
6
+ .version-switcher details {
7
+ border: 1px solid var(--color-sidebar-link-text);
8
+ border-radius: 4px;
9
+ padding: 0;
10
+ }
11
+
12
+ .version-switcher summary {
13
+ padding: 6px 12px;
14
+ cursor: pointer;
15
+ font-size: 0.85rem;
16
+ font-weight: 600;
17
+ color: var(--color-sidebar-link-text);
18
+ list-style: none;
19
+ }
20
+
21
+ .version-switcher summary::before {
22
+ content: "v ";
23
+ }
24
+
25
+ .version-switcher summary::-webkit-details-marker {
26
+ display: none;
27
+ }
28
+
29
+ .version-list {
30
+ display: flex;
31
+ flex-direction: column;
32
+ border-top: 1px solid var(--color-sidebar-link-text);
33
+ }
34
+
35
+ .version-list a {
36
+ padding: 6px 12px;
37
+ font-size: 0.85rem;
38
+ color: var(--color-sidebar-link-text);
39
+ text-decoration: none;
40
+ }
41
+
42
+ .version-list a:hover {
43
+ background: var(--color-sidebar-item-background--hover);
44
+ }
@@ -0,0 +1,15 @@
1
+ {% if versions %}
2
+ <div class="version-switcher">
3
+ <details>
4
+ <summary>{{ current_version.name or 'dev' }}</summary>
5
+ <div class="version-list">
6
+ {% for item in versions.tags %}
7
+ <a href="{{ item.url }}">{{ item.name }}</a>
8
+ {% endfor %}
9
+ {% for item in versions.branches %}
10
+ <a href="{{ item.url }}">{{ item.name }} (dev)</a>
11
+ {% endfor %}
12
+ </div>
13
+ </details>
14
+ </div>
15
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ BasePlugin
2
+ ==========
3
+
4
+ .. autoclass:: forkbit_sdk.BasePlugin
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
@@ -0,0 +1,10 @@
1
+ GitClient
2
+ =========
3
+
4
+ .. autoclass:: forkbit_sdk.GitClient
5
+ :members:
6
+ :undoc-members:
7
+ :show-inheritance:
8
+
9
+ .. autoexception:: forkbit_sdk.GitError
10
+ :show-inheritance: