Docs: add dutch, support for generated documentation in non-repo location, remove from housekeeping

This commit is contained in:
Pieter Vander Vennet 2025-10-07 23:29:57 +02:00
parent b4cb1b97cc
commit b4d89e48f5
8 changed files with 171 additions and 45 deletions

View file

@ -1,8 +1,12 @@
README
======
[🇳🇱 In het nederlands](https://docs.mapcomplete.org/nl)
Welcome to the documentation directory of MapComplete!
The documentation is meant to be viewed on our [documentation website](https://docs.mapcomplete.org).
This is meant for more advanced users and contributors of MapComplete.
- Some general information is in the top section

View file

@ -13,6 +13,10 @@
<body>
<div id="app"></div>
<script>
let language = "en"
if (document.location.pathname.startsWith("/nl/")) {
language = "nl"
}
window.$docsify = {
name: "MapComplete Docs",
noEmoji: true,
@ -23,8 +27,8 @@
maxAge: 86400000, // 1 day cache
paths: "auto",
auto2top: true,
placeholder: "Search",
noData: "No Results!",
placeholder: language === "nl" ? "Zoeken" : "Search",
noData: language === "nl" ? "Geen resultaten gevonden" : "No Results found",
depth: 2,
},
}

18
Docs/nl/README.md Normal file
View file

@ -0,0 +1,18 @@
README
======
[In English](https://docs.mapcomplete.org/)
Welkom op de documentatiewebsite voor MapComplete.
De informatie die je hier vindt is bedoeld voor iets geavanceerdere gebruikers.
Je kunt hier (onder andere) een overzicht vinden van welke attributen er gebruikt worden door welke lagen.
Noot: de [Engelse documentatie](https://docs.mapcomplete.org) bevat meer informatie
Voor andere vragen:
- Ideëen voor verbeteringen en rapporteren van bugs is via [de issue tracker](https://source.mapcomplete.org/mapcomplete/mapcomplete/issues) (dit mag in het Nederlands)
- Er is een chat rond MapComplete op [matrix (engelstalig)](https://app.element.io/#/room/#MapComplete:matrix.org)
- Tenslotte kan je ook de ontwikkelaar emailen op info@mapcomplete.org (Nederlands / Engels)

View file

@ -0,0 +1,4 @@
# Wat is MapComplete?
MapComplete is een OpenStreetMap-webeditor die zich richt op het weergeven en aanpassen van OpenStreetMap-data.
Het biedt vooraf gedefinieerde “themas” (zoals bankjes, fietsenrekken, kunstwerken, enz.) laat gebruikers direct informatie zien of bewerken zonder technische kennis van OSM.

85
Docs/nl/index.html Normal file
View file

@ -0,0 +1,85 @@
<!DOCTYPE html>
<!-- This is meant to be run with docsify -->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
let language = "en"
if (document.location.pathname.startsWith("/nl/")) {
language = "nl"
}
window.$docsify = {
name: "MapComplete Docs",
noEmoji: true,
loadSidebar: true,
autoToTop: true,
repo: "https://source.mapcomplete.org/mapcomplete/mapcomplete/",
search: {
maxAge: 86400000, // 1 day cache
paths: "auto",
auto2top: true,
placeholder: language === "nl" ? "Zoeken" : "Search",
noData: language === "nl" ? "Geen resultaten gevonden" : "No Results found",
depth: 2,
},
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
<style>
.sidebar a {
line-height: 1.3em;
}
.sidebar {
padding-left: 1rem;
}
.sidebar strong {
font-size: 1.2em;
}
.sidebar p:has(strong){
margin: 0;
top: 0;
position: sticky;
background: white;
padding: 0.25rem;
}
.sidebar a:has(strong) {
margin-top: 1em;
}
.active a {
color: #42b983 !important;;
color: var(--theme-color, #42b983) !important;
font-weight: 600 !important;
border-right: 2px solid !important;
}
/*noinspection CssUnusedSymbol*/
.back-to-mc {
display: block;
padding: 0.5rem;
background: #3f3f39;
color: white;
border: 2px solid white;
border-radius: 0.5rem;
}
</style>
</body>
</html>