Merge branch 'update-docs' into 'master'
Update docs and CI builds See merge request Librem5/squeekboard!320
This commit is contained in:
		@ -22,7 +22,8 @@ build_docs:
 | 
				
			|||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - _build
 | 
					      - _build
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
      - apt-get -y install python3-recommonmark python3-sphinx
 | 
					      - apt-get -y install python3-pip python3-sphinx
 | 
				
			||||||
 | 
					      - pip3 install recommonmark
 | 
				
			||||||
      - ./doc/build.sh _build
 | 
					      - ./doc/build.sh _build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build_meson:
 | 
					build_meson:
 | 
				
			||||||
 | 
				
			|||||||
@ -12,6 +12,10 @@ TARGET_DIR="${1:-./}"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
SPHINX=sphinx-build
 | 
					SPHINX=sphinx-build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ ! -d $DOCS_DIR/_static ]; then
 | 
				
			||||||
 | 
					    mkdir -p $DOCS_DIR/_static
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ! which sphinx-build ; then
 | 
					if ! which sphinx-build ; then
 | 
				
			||||||
    SPHINX=sphinx-build-3
 | 
					    SPHINX=sphinx-build-3
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
@ -9,12 +9,12 @@ Contents
 | 
				
			|||||||
Introduction
 | 
					Introduction
 | 
				
			||||||
------------
 | 
					------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Squeekboard is the on-screen keyobard for the Librem 5 phone. For more information, look at the [README](https://source.puri.sm/Librem5/squeekboard/blob/master/README.md).
 | 
					Squeekboard is the on-screen keyboard for the Librem 5 phone. For more information, look at the [README](https://source.puri.sm/Librem5/squeekboard/blob/master/README.md).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Layouts
 | 
					Layouts
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Squeekboard allows user-provided keyboard layouts. They can be created without recompiling the keyboard code. The tutorial](/tutorial.md) explains the process in detail.
 | 
					Squeekboard allows user-provided keyboard layouts. They can be created without recompiling the keyboard code. The [tutorial](/tutorial.md) explains the process in detail.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Layouts are created using a text-based format, based on YAML.
 | 
					Layouts are created using a text-based format, based on YAML.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -35,12 +35,14 @@ So at least I will try to start writing a short how-to here and edit this post a
 | 
				
			|||||||
* You can either test it locally on your Linux system or use the [QEMU Librem 5 image ](https://developer.puri.sm/Librem5/Development_Environment/Boards/emulators.html)
 | 
					* You can either test it locally on your Linux system or use the [QEMU Librem 5 image ](https://developer.puri.sm/Librem5/Development_Environment/Boards/emulators.html)
 | 
				
			||||||
* To test squeekboard locally, you need phoc. Either compile that from the sources as well or use the CI repository ci.puri.sm for Debian based systems:
 | 
					* To test squeekboard locally, you need phoc. Either compile that from the sources as well or use the CI repository ci.puri.sm for Debian based systems:
 | 
				
			||||||
  `deb [arch=amd64] http://ci.puri.sm/ scratch librem5`
 | 
					  `deb [arch=amd64] http://ci.puri.sm/ scratch librem5`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Squeekboard can be installed from there as a Debian package, too (that’s what I often do). But beware - there be dragons! You could bork your system with these packages and you should probably disable this repository again after installing what you need - these packages are not meant for production systems (or so I heard :wink: )
 | 
					Squeekboard can be installed from there as a Debian package, too (that’s what I often do). But beware - there be dragons! You could bork your system with these packages and you should probably disable this repository again after installing what you need - these packages are not meant for production systems (or so I heard :wink: )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Creating the keyboard layout**
 | 
					**Creating the keyboard layout**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* To be written: For the time being, take a look at [Using non-latin language on Librem 5 ](https://forums.puri.sm/t/using-non-latin-language-on-librem-5/7103/5)
 | 
					* To be written: For the time being, take a look at [Using non-latin language on Librem 5 ](https://forums.puri.sm/t/using-non-latin-language-on-librem-5/7103/5)
 | 
				
			||||||
* The correct name of the .yaml file can be found with the command `gsettings get org.gnome.desktop.input-sources sources`
 | 
					* The correct name of the .yaml file can be found with the command `gsettings get org.gnome.desktop.input-sources sources`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The output should be something like this: `[('xkb', 'us'), ('xkb', 'de')]`
 | 
					The output should be something like this: `[('xkb', 'us'), ('xkb', 'de')]`
 | 
				
			||||||
So f.ex. “de.yaml” would be the correct name for the German keyboard layout.
 | 
					So f.ex. “de.yaml” would be the correct name for the German keyboard layout.
 | 
				
			||||||
* The translations for the keyboard layout names in the different languages can be found at `data/langs/`
 | 
					* The translations for the keyboard layout names in the different languages can be found at `data/langs/`
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user