nani/website/pages/documentation.scm

documentation.scm

1
;;; Nani Project website
2
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
3
;;;
4
;;; This file is part of the Nani Project website.
5
;;;
6
;;; The Nani Project website is free software; you can redistribute it and/or modify it
7
;;; under the terms of the GNU Affero General Public License as published by
8
;;; the Free Software Foundation; either version 3 of the License, or (at
9
;;; your option) any later version.
10
;;;
11
;;; The Nani Project website is distributed in the hope that it will be useful, but
12
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;;; GNU Affero General Public License for more details.
15
;;;
16
;;; You should have received a copy of the GNU Affero General Public License
17
;;; along with the Nani Project website.  If not, see <http://www.gnu.org/licenses/>.
18
19
(define-module (pages documentation)
20
  #:use-module (tools i18n)
21
  #:use-module (tools theme)
22
  #:export (page-documentation))
23
24
(define page-documentation
25
  (internationalize "documentation" "documentation"
26
    `(div
27
      (h1 (_ "Documentation"))
28
      (div (@ (class "article"))
29
        (p (_ "This documentation will guide you in some of the most important
30
aspects of the application. Please read it carefuly!"))
31
        (h2 (_ "Downloading a dictionary"))
32
        (p (_ "This application is based on multiple dictionaries that
33
you can download in the app. They all add some functionality to the application.
34
In the following sections we will see how to use them."))
35
        (p (_ "To download a dictionary, you need to click on the three dots
36
at the top right of the screens and select “Manage Dictionaries”. This will
37
open a new view where you can select a dictionary in a list."))
38
        (p (_ "Tap on the dictionary you want to add. You will be presented
39
with more details on the dictionary and options to download, refresh or delete
40
it. Once you have successfuly downloaded a dictionary, you are ready to use
41
the app!"))
42
        (h2 (_ "Searching vocabulary"))
43
        (p (_ "To be able to look for vocabulary, you must first download a
44
dictionary. There are dictionaries for different languages."))
45
        (p (_ "From the main view, tap on the search bar and type your search
46
term. It can be a word written in kanji, with its pronounciation or the meaning
47
of a word in the language of a dictionary you downloaded."))
48
        (p (_ "Tap on the search button and you'll see the results. Easy, right?"))
49
        (h2 (_ "Settings"))
50
        (p (_ "There are currently no settings."))
51
        (h2 (_ "Building the app"))
52
        (p (_ "To develop the app, I use android studio. This is the best way to
53
build it, because you can easily modify some of it too. If you don't want to
54
use android studio, you can still build the app with only gradle."))
55
        (h2 (_ "You can help too!"))
56
        (p (_ "Lastly, note that you can help make this app the best. You can help
57
in so many different ways, some of the greatest are listed below:"))
58
        (ul
59
          (li (_ "<a href=\"~a\">Translate</a> the app and this website"
60
                  "https://framagit.org/nani-project"))
61
          (li (_ "Talk about it to fellow Japanese learners"))
62
          (li (_ "<a href=\"~a\">Report</a> a bug, or two"
63
                  "https://framagit.org/nani-project/nani-app/issues"))
64
          (li (_ "<a href=\"~a\">Suggest</a> improvements and more data sources"
65
                  "https://framagit.org/nani-project/nani-app/issues"))
66
          (li (_ "Write some code and send me a patch")))
67
        (p (_ "In any case, I hope you will enjoy Nani as much as I enjoyed writting
68
it!"))))
69
    nani-theme))
70