-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin writing lightbulb-by-example pages. Migrate current docs to usi…
…ng MyST instead of rST
- Loading branch information
1 parent
8386f9d
commit 71a8f89
Showing
30 changed files
with
967 additions
and
1,057 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
(by-example)= | ||
# Lightbulb By Example | ||
|
||
::::{grid} 1 2 2 2 | ||
:gutter: 3 | ||
|
||
:::{grid-item-card} {material-outlined}`flag;2em` Preface | ||
:columns: 12 | ||
:link: 0-preface | ||
:link-type: ref | ||
|
||
Introduction to Lightbulb - including project setup and first steps. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`keyboard_command_key;2em` Commands | ||
:link: 1-commands | ||
:link-type: ref | ||
|
||
What is a command and how to create them. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`settings;2em` Options | ||
:link: 2-options | ||
:link-type: ref | ||
|
||
Taking user input for commands and how to use it. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`menu_open;2em` Context Menus | ||
:link: 3-context-menus | ||
:link-type: ref | ||
|
||
What are context menu commands - how and why to use them. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`groups;2em` Groups | ||
:link: 4-groups | ||
:link-type: ref | ||
|
||
Why use a command group, and potential pitfalls using them. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`link;2em` Dependencies | ||
:link: 5-dependencies | ||
:link-type: ref | ||
|
||
What is dependency injection - accessing objects wherever you need them without global state. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`phishing;2em` Hooks | ||
:link: 6-hooks | ||
:link-type: ref | ||
|
||
Modifying command behaviour and conditionally blocking execution. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`power;2em` Extensions | ||
:link: 7-extensions | ||
:link-type: ref | ||
|
||
Splitting your application into multiple files - how extensions enable this. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`keyboard_alt;2em` Autocomplete | ||
:link: 8-autocomplete | ||
:link-type: ref | ||
|
||
Dynamically suggesting option values to your users. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`translate;2em` Localization | ||
:link: 9-localization | ||
:link-type: ref | ||
|
||
Catering to the international audience - how to translate command names and more. | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`menu_book;2em` Appendix | ||
:columns: 12 | ||
:link: 10-appendix | ||
:link-type: ref | ||
|
||
Further reading; more advanced concepts and techniques. | ||
::: | ||
:::: | ||
|
||
:::{toctree} | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
by-examples/000_preface | ||
by-examples/010_commands | ||
by-examples/020_options | ||
by-examples/030_context_menus | ||
by-examples/040_groups | ||
by-examples/050_dependencies | ||
by-examples/060_hooks | ||
by-examples/070_extensions | ||
by-examples/080_autocomplete | ||
by-examples/090_localization | ||
by-examples/100_appendix | ||
::: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
(3-context-menus)= | ||
# 3 - Context Menus | ||
|
||
~~ info about what a context menu command is ~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(4-groups)= | ||
# 4 - Groups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(6-hooks)= | ||
# 6 - Hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(7-extensions)= | ||
# 7 - Extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(8-autocomplete)= | ||
# 8 - Autocomplete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(9-localization)= | ||
# 9 - Localization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
(10-appendix)= | ||
# 10 - Appendix |
Oops, something went wrong.