Include specifications in the documentation
Now that we can use markdown easily add them as they provide help to the developer what events exist, etc.
This commit is contained in:
@@ -67,7 +67,7 @@ See `examples/` for a simple python example using GObject introspection.
|
|||||||
|
|
||||||
# How it works
|
# How it works
|
||||||
|
|
||||||
We're using a [event naming spec](./Event-naming-spec-0.0.0.md)
|
We're using a [event naming spec](./doc/Event-naming-spec-0.0.0.md)
|
||||||
similar to http://0pointer.de/public/sound-naming-spec.html to name
|
similar to http://0pointer.de/public/sound-naming-spec.html to name
|
||||||
events. This will allow us to act as a system sound library so
|
events. This will allow us to act as a system sound library so
|
||||||
applications only need to call into this library and things like
|
applications only need to call into this library and things like
|
||||||
@@ -221,8 +221,8 @@ GSETTINGS_SCHEMA_DIR=_build/data/ gsettings set org.sigxcpu.feedbackd.applicatio
|
|||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
- [Libfeedback API](https://honk.sigxcpu.org/projects/feedbackd/doc/)
|
- [Libfeedback API](https://honk.sigxcpu.org/projects/feedbackd/doc/)
|
||||||
- [Event naming spec draft](./Event-naming-spec-0.0.0.md)
|
- [Event naming spec draft](./doc/Event-naming-spec-0.0.0.md)
|
||||||
- [Feedback-theme-spec draft](./Feedback-theme-spec-0.0.0.md)
|
- [Feedback-theme-spec draft](./doc/Feedback-theme-spec-0.0.0.md)
|
||||||
|
|
||||||
[debian/control]: ./debian/control#L5
|
[debian/control]: ./debian/control#L5
|
||||||
[1]: https://source.puri.sm/Librem5/feedbackd-device-themes)
|
[1]: https://source.puri.sm/Librem5/feedbackd-device-themes
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
This is similar in spirit (and heavily based on) to the [Sound naming spec][].
|
Title: Event Naming Specification
|
||||||
|
Slug: Event Naming Specification
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
@@ -11,6 +12,8 @@ Events, and a larger list with many more examples to help with the
|
|||||||
creation of extended Events for third party applications, with
|
creation of extended Events for third party applications, with
|
||||||
different event types and usage.
|
different event types and usage.
|
||||||
|
|
||||||
|
This is similar in spirit (and heavily based on) to the [Sound naming spec][].
|
||||||
|
|
||||||
# Context
|
# Context
|
||||||
|
|
||||||
The list of default contexts for the feedback theme are:
|
The list of default contexts for the feedback theme are:
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
Title: Feedback Theme Specification
|
||||||
|
Slug: Feedback Theme Specification
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
A feedback theme defines the kind of feedback that events (as
|
A feedback theme defines the kind of feedback that events (as
|
||||||
@@ -64,7 +67,7 @@ silent:
|
|||||||
```
|
```
|
||||||
|
|
||||||
At the time of writing the theme format is daemon dependent. E.g. feedbackd
|
At the time of writing the theme format is daemon dependent. E.g. feedbackd
|
||||||
uses a format [similar to the above in JSON](./data/default.json).
|
uses a format [similar to the above in JSON](https://source.puri.sm/Librem5/feedbackd/-/blob/main/data/default.json)
|
||||||
|
|
||||||
|
|
||||||
# Recommendations
|
# Recommendations
|
||||||
@@ -75,4 +78,4 @@ uses a format [similar to the above in JSON](./data/default.json).
|
|||||||
be used.
|
be used.
|
||||||
- The full feedback theme can use any available feedback mechanisms
|
- The full feedback theme can use any available feedback mechanisms
|
||||||
|
|
||||||
[Event naming spec]: ./Event-naming-spec-0.0.0.md
|
[Event naming spec]: https://source.puri.sm/Librem5/feedbackd/-/blob/main/doc/Event-naming-spec-0.0.0.md
|
||||||
+1
-1
@@ -52,7 +52,7 @@ print help and exit
|
|||||||
<para>
|
<para>
|
||||||
Submit the given event to <command>feedbackd</command>. Valid events are
|
Submit the given event to <command>feedbackd</command>. Valid events are
|
||||||
listes in the event naming spec at
|
listes in the event naming spec at
|
||||||
<ulink url="https://source.puri.sm/Librem5/feedbackd/-/blob/main/Event-naming-spec-0.0.0.md"/>
|
<ulink url="https://source.puri.sm/Librem5/feedbackd/-/blob/main/doc/Event-naming-spec-0.0.0.md"/>
|
||||||
</para>
|
</para>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|||||||
@@ -39,4 +39,6 @@ content_files = [
|
|||||||
"overview.md",
|
"overview.md",
|
||||||
"build-howto.md",
|
"build-howto.md",
|
||||||
"initialization.md",
|
"initialization.md",
|
||||||
|
"Event-naming-spec-0.0.0.md",
|
||||||
|
"Feedback-theme-spec-0.0.0.md",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ expand_content_md_files = [
|
|||||||
'overview.md',
|
'overview.md',
|
||||||
'build-howto.md',
|
'build-howto.md',
|
||||||
'initialization.md',
|
'initialization.md',
|
||||||
|
'Event-naming-spec-0.0.0.md',
|
||||||
|
'Feedback-theme-spec-0.0.0.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
toml_data = configuration_data()
|
toml_data = configuration_data()
|
||||||
|
|||||||
Reference in New Issue
Block a user