Skip to content

Commit

Permalink
[Docs] Fix documentation
Browse files Browse the repository at this point in the history
- Fix “Cache” option in Back up/Restore > Backup Options
- Ensure touch target size for links is 48px in devices with touch screen

Thanks: Mikael Wiesel
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
  • Loading branch information
MuntashirAkon committed Sep 3, 2023
1 parent 916331f commit e8d5fba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docs/raw/en/guide/backup-restore.tex
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ \subsection{Backup Options}\label{subsec:backup-restore-backup-options} %%##$opt

\item \textbf{Cache.} Android apps have multiple cache directories located at every data directories (both internal and external).
There are two types of cache: \textbf{cache} and \textbf{code cache}.
Enabling this option excludes both cache directories from all the data directories.
It is generally advised to exclude cache directories since most apps do not clear the cache regularly (for some
reason, the only way an app can clear its cache is by deleting the entire cache directory) and usually handled by the OS itself.
Disabling this option excludes both cache directories from all the data directories.
It is generally advised to exclude cache directories since most apps do not clear the cache regularly and usually handled by the OS itself.
Apps such as Telegram may use a very large cache (depending on the storage space) which may dramatically increase the backup size.
When it is disabled, AM also ignores the \textbf{no\_backup} directories.

Expand Down
10 changes: 10 additions & 0 deletions docs/raw/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@
text-shadow: 0 0 2px #212121;
font-family: Helvetica Nueue, Helvetica, sans-serif;
}

a.link {
display: inline-block;
}

@media (any-pointer: coarse) {
a.link {
padding: 16px 8px;
}
}
</style>
<script>
// noinspection JSUnusedGlobalSymbols
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function deploy(bool $force = false): void {
$js_lang_html = array();
foreach ($languages as $language) {
$lang_code = get_IETF_language_tag($language);
$js_lang_html[] = " <a href=\"$language/\" onclick=\"return setLanguage('$language')\">" . Locale::getDisplayName($lang_code, $lang_code) . "</a>";
$js_lang_html[] = " <a class=\"link\" href=\"$language/\" onclick=\"return setLanguage('$language')\">" . trim(Locale::getDisplayName($lang_code, $lang_code)) . "</a>";
}
$html_contents = file_get_contents(RAW_DIR . '/index.html');
$html_contents = str_replace('PLACEHOLDER_LANGUAGES_AS_ARRAY', implode('\', \'', $languages), $html_contents);
Expand Down

0 comments on commit e8d5fba

Please sign in to comment.