Document not found (404)
+This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index acddfc24..0362dc27 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - "docs/**" + - "docs/book" - ".github/workflows/pages.yml" workflow_dispatch: @@ -27,7 +27,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./docs + path: ./docs/book deploy: permissions: pages: write diff --git a/docs/Makefile b/docs/Makefile index 0b177251..bf95e532 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,9 +1,3 @@ -all: node_modules - gitbook build - rm -r $(CURDIR)/../docs - mv $(CURDIR)/_book $(CURDIR)/../docs - -node_modules: - gitbook install - +all: + mdbook build diff --git a/docs/assets/images/uml/046717e1e2c33fa8c3007e6a79f853670d932ea6.svg b/docs/assets/images/uml/046717e1e2c33fa8c3007e6a79f853670d932ea6.svg deleted file mode 100644 index 986d0d04..00000000 --- a/docs/assets/images/uml/046717e1e2c33fa8c3007e6a79f853670d932ea6.svg +++ /dev/null @@ -1,54 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/images/uml/0a331877ecc2320535f07c31ef2c8471bd76dd39.svg b/docs/assets/images/uml/0a331877ecc2320535f07c31ef2c8471bd76dd39.svg deleted file mode 100644 index fdba9bd2..00000000 --- a/docs/assets/images/uml/0a331877ecc2320535f07c31ef2c8471bd76dd39.svg +++ /dev/null @@ -1,53 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/images/uml/494781426b5a1fa03263355fb1797dc943508b94.svg b/docs/assets/images/uml/494781426b5a1fa03263355fb1797dc943508b94.svg deleted file mode 100644 index de8ddaad..00000000 --- a/docs/assets/images/uml/494781426b5a1fa03263355fb1797dc943508b94.svg +++ /dev/null @@ -1,97 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/images/uml/7d2fbe20caab47be565ab2ed5e6e90dd72d48a32.svg b/docs/assets/images/uml/7d2fbe20caab47be565ab2ed5e6e90dd72d48a32.svg deleted file mode 100644 index 4912f7a8..00000000 --- a/docs/assets/images/uml/7d2fbe20caab47be565ab2ed5e6e90dd72d48a32.svg +++ /dev/null @@ -1,50 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/images/uml/c9a9978db11ac62b5667fe689064c3957d0d48bb.svg b/docs/assets/images/uml/c9a9978db11ac62b5667fe689064c3957d0d48bb.svg deleted file mode 100644 index bdfac1c7..00000000 --- a/docs/assets/images/uml/c9a9978db11ac62b5667fe689064c3957d0d48bb.svg +++ /dev/null @@ -1,46 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/images/uml/c9f17668c2dcdf7c2e6cfeb26f595f5760588815.svg b/docs/assets/images/uml/c9f17668c2dcdf7c2e6cfeb26f595f5760588815.svg deleted file mode 100644 index 2ba871cf..00000000 --- a/docs/assets/images/uml/c9f17668c2dcdf7c2e6cfeb26f595f5760588815.svg +++ /dev/null @@ -1,81 +0,0 @@ - \ No newline at end of file diff --git a/docs/book.toml b/docs/book.toml new file mode 100644 index 00000000..7d51fe13 --- /dev/null +++ b/docs/book.toml @@ -0,0 +1,9 @@ +[book] +authors = ["Yosuke Akatsuka"] +language = "en" +multilingual = false +src = "src" +title = "hashira's design document" + +[preprocessor.plantuml] +plantuml-cmd="plantuml" diff --git a/docs/book/.nojekyll b/docs/book/.nojekyll new file mode 100644 index 00000000..f1731109 --- /dev/null +++ b/docs/book/.nojekyll @@ -0,0 +1 @@ +This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/docs/book/404.html b/docs/book/404.html new file mode 100644 index 00000000..5dca7938 --- /dev/null +++ b/docs/book/404.html @@ -0,0 +1,234 @@ + + +
+ + +This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +Assume to use Electron
+GUI to daemon
+Daemon to GUI
+TODO: Show GUI picture
+GUI to Daemon
+Daemon to GUI
+TODO: Show GUI picture
+Widget to Daemon
+Daemon to widget
+TODO: Show GUI picture
+Two data entities are declared for local document store.
+Refer proto file for latest data entity declaration.
+message Task {
+ string id = 1;
+ string name = 2;
+ Place place = 3;
+ bool isDeleted = 4;
+}
+
+message Priority {
+ Place place = 1;
+ repeated string ids = 2;
+}
+
+
+ Hashira Service
+command and related enumeration
+what (enum)
+enum | remarks |
---|---|
new | create a new task |
update | update state of a task |
command (structure)
+field | type | remarks |
---|---|---|
what | enum of what | new, update, etc. |
payload | string | JSON formatted string how to treat what. |
When daemon receives commands, cache them and return ok immediately.
+If daemon is online, send cached commands to datastore.
+When datastore receives commands and succeed to apply them, datastore sends notification to daemon.
+At daemon receiving notification, retrieve chunk of data from datastore for syncing.
+When daemon succeed to apply them, daemon sends notification to front end.
+At front end receiving notification, retrieve chunk of data from daemon.
+When front end succeed to retrieve chunk of data, render them.
+If daemon is offline, postpone to send commands to datastore.
+