Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/doc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [en,es,zh_Hans]
language: [en,es,zh_Hans,sv]

steps:
- uses: actions/checkout@v5
Expand All @@ -62,7 +62,7 @@ jobs:
- name: check modified files
id: check_files
run: |
# allways processing english, no matter what the change was
# always processing english, no matter what the change was
if [[ "${{ matrix.language }}" == "en" ]]; then echo "PROCESS=true" >> $GITHUB_ENV; exit 0; fi

# when this file changes all languages are tested
Expand Down Expand Up @@ -116,6 +116,7 @@ jobs:
mkdir build
cd build
cmake -DBUILD_LINKCHECK=ON \
-DSPHINX_FLAGS='-W -v -j auto --keep-going' \
-DPOSTGRESQL_VERSION=${PGVER} ..

- name: Check Documentation
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Documentation build

* The doxygen documentation is build by default
* The HTML documentation is build by default
* The translated languages (en, es, zh_Hans) HTML documentation is build by default
* The translated languages (en, es, sv, zh_Hans) HTML documentation is build by
default
* `WITH-DOC` is not used anymore

User's Documentation is not build when
Expand Down
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ add_custom_target(doc ALL COMMENT "Building documentation with Sphinx")
#---------------------------------------------
# LANGUAGES SETTINGS
#---------------------------------------------
list(APPEND PROJECT_LANGUAGES_TRANSLATED "EN" "ES" "ZH_HANS")
list(APPEND PROJECT_LANGUAGES_TRANSLATED "EN" "ES" "SV" "ZH_HANS")
list(APPEND PROJECT_LANGUAGES "de" "en" "es" "ja" "ko" "sv" "zh_Hans")

foreach(lang ${PROJECT_LANGUAGES})
Expand Down
13 changes: 7 additions & 6 deletions doc/_static/page_history.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ function createInfo(file, newat, altnames = '', removedat = '') {
this.removedat = removedat;
}

const versionsArr = ['4.0', '3.8','3.7', '3.6', '3.5', '3.4', '3.3', '3.2', '3.1', '3.0'];
var unsuportedArr = ['2.6', '2.5', '2.4', '2.3', '2.2', '2.1', '2.0'];
const versionsArr = ['4.0'];
var unsuportedArr = ['3.8','3.7', '3.6', '3.5', '3.4', '3.3', '3.2', '3.1', '3.0','2.6', '2.5', '2.4', '2.3', '2.2', '2.1', '2.0'];
var titles = [
{k: 'en', v: ['Supported versions', 'Unsupported versions']},
{k: 'es', v: ['Versiones soportadas', 'Versiones no soportadas']},
{k: 'sv', v: ['understödda versioner', 'Viversioner som inte stöds']},
{k: 'zh-Hans', v: ['Supported versions', 'Unsupported versions']},
];

Expand Down Expand Up @@ -323,9 +324,6 @@ function get_history(name, lang) {
if (versionsArr[i] < data.newat) break;
if (data.removedat != '' && versionsArr[i] > data.newat) break;

/* for zh-Hans non translated versions use english */
validlang = (lang == 'zh-Hans' && versionsArr[i] >= '3.7')? 'zh_Hans' : 'en';

let link = `${home}${versionsArr[i]}/`
link += get_vdata(data.altnames, versionsArr[i], data.file, validlang);
if (versionsArr[i] == latest) result += '(' + link + ') ';
Expand All @@ -342,6 +340,10 @@ function get_history(name, lang) {

/* for spanish non translated versions use english */
validlang = (lang == 'es' && unsuportedArr[i] == '2.0')? 'es' : validlang;
/* for zh-Hans non translated versions use english */
validlang = (lang == 'zh-Hans' && versionsArr[i] >= '3.7')? 'zh_Hans' : 'en';
/* for swedish non translated versions use english */
validlang = (lang == 'sv' && versionsArr[i] >= '4.0')? 'sv' : 'en';

if (data.newat > unsuportedArr[i]) break;
var link = home + unsuportedArr[i] + '/';
Expand All @@ -351,4 +353,3 @@ function get_history(name, lang) {
}
return result;
}

3 changes: 2 additions & 1 deletion doc/src/pgRouting-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ BUILD_MAN BOOL=OFF If ON, turn on/off building MAN pages
DOC_USE_BOOTSTRAP BOOL=OFF If ON, use sphinx-bootstrap for HTML pages of the
users documentation
EN BOOL=ON if OFF the English documentation will no be built
ES BOOL=ON if OFF the Spaish documentation will no be built
ES BOOL=ON if OFF the Spanish documentation will no be built
SV BOOL=ON if OFF the Swedish documentation will no be built
ZH_HANS BOOL=ON if OFF the Chinese simplified documentation will no
be built
================== ========= ============================
Expand Down
13 changes: 12 additions & 1 deletion doc/src/pgRouting-introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ pgRouting, pgRoutingLayer, workshop.
Translators (in alphabetical order)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dapeng Wang
Chinese:

- Dapeng Wang

Spanish:

- Vicky Vergara

Swedish:

- Daniel Nylander


Corporate Sponsors in this release (in alphabetical order)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
3 changes: 2 additions & 1 deletion doc/src/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Documentation build

* The doxygen documentation is build by default
* The HTML documentation is build by default
* The translated languages (en, es, zh_Hans) HTML documentation is build by default
* The translated languages (en, es, sv, zh_Hans) HTML documentation is build by
default
* `WITH-DOC` is not used anymore

User's Documentation is not build when
Expand Down
2 changes: 1 addition & 1 deletion locale/es/LC_MESSAGES/pgrouting_doc_strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -8393,7 +8393,7 @@ msgid "Fixing a gap"
msgstr ""

msgid "Routing from :math:`1` to :math:`2` gives no solution."
msgstr "La ruta de :math:`1` a :math:`2`no da ninguna solución."
msgstr "La ruta de :math:`1` a :math:`2` no da ninguna solución."

msgid "Analyze the network for gaps."
msgstr "Analizar la red por espacios."
Expand Down
Loading
Loading