Restore LF line endings and document hyphenated page names #121
@@ -38,6 +38,9 @@ Each release lists its changes in these groups, in this order:
|
|||||||
`Home%2Dda`, so links to `Home-da` led to the page list. A new page is now
|
`Home%2Dda`, so links to `Home-da` led to the page list. A new page is now
|
||||||
stored as `Home-da.md` and addressed as `Home-da`. Pages already created with
|
stored as `Home-da.md` and addressed as `Home-da`. Pages already created with
|
||||||
the old title must be deleted by hand (the publisher does not prune them).
|
the old title must be deleted by hand (the publisher does not prune them).
|
||||||
|
- The onboarding guide and its wiki pages (English, Danish, Bahasa Malaysia) say
|
||||||
|
that a hyphen in a file name is a space in the page name, and how to link to
|
||||||
|
it.
|
||||||
|
|
||||||
## [1.1.0] - 2026-10-11
|
## [1.1.0] - 2026-10-11
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ like the sync workflow, but it writes only where a repository opts in.
|
|||||||
|
|
||||||
1. Enable the wiki in the repository settings.
|
1. Enable the wiki in the repository settings.
|
||||||
2. Add Markdown pages to `wiki/`. The file name is the page name: `Home.md` is
|
2. Add Markdown pages to `wiki/`. The file name is the page name: `Home.md` is
|
||||||
the home page.
|
the home page. A hyphen in the name is a space in the page name: `Home-da.md`
|
||||||
|
is the page "Home da", and a link to it is `[Dansk](Home-da)`.
|
||||||
3. Add the marker `wiki/.publish`. Leave it empty to create and update pages
|
3. Add the marker `wiki/.publish`. Leave it empty to create and update pages
|
||||||
only. Put the single word `prune` in it to also delete wiki pages that are
|
only. Put the single word `prune` in it to also delete wiki pages that are
|
||||||
not in `wiki/`, so the wiki always equals the folder.
|
not in `wiki/`, so the wiki always equals the folder.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!-- translation of Onboarding.md, source sha256 1d431898754e -->
|
<!-- translation of Onboarding.md, source sha256 0b11defd563a -->
|
||||||
|
|
||||||
> Dette er en oversættelse af [`Onboarding`](Onboarding). Den engelske side er autoritativ, og ændringer her bliver overskrevet, næste gang wikien publiceres.
|
> Dette er en oversættelse af [`Onboarding`](Onboarding). Den engelske side er autoritativ, og ændringer her bliver overskrevet, næste gang wikien publiceres.
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ Leveringen er automatisk, så et repository behøver ingen kopi af workflowet. S
|
|||||||
Workflowet **Publish wiki** kopierer Markdown-siderne i `wiki/` til repositoryets wiki, når en ændring af `wiki/` flettes til `main`. Det leveres som synkroniseringsworkflowet, men skriver kun, hvor et repository har meldt sig til.
|
Workflowet **Publish wiki** kopierer Markdown-siderne i `wiki/` til repositoryets wiki, når en ændring af `wiki/` flettes til `main`. Det leveres som synkroniseringsworkflowet, men skriver kun, hvor et repository har meldt sig til.
|
||||||
|
|
||||||
1. Aktivér wikien i repositoryets indstillinger.
|
1. Aktivér wikien i repositoryets indstillinger.
|
||||||
2. Tilføj Markdown-sider til `wiki/`. Filnavnet er sidens navn: `Home.md` er forsiden.
|
2. Tilføj Markdown-sider til `wiki/`. Filnavnet er sidens navn: `Home.md` er forsiden. En bindestreg i navnet er et mellemrum i sidens navn: `Home-da.md` er siden "Home da", og et link til den er `[Dansk](Home-da)`.
|
||||||
3. Tilføj markøren `wiki/.publish`. Lad den være tom for kun at oprette og opdatere sider. Skriv det ene ord `prune` i den for også at slette wiki-sider, der ikke findes i `wiki/`, så wikien altid er lig med mappen.
|
3. Tilføj markøren `wiki/.publish`. Lad den være tom for kun at oprette og opdatere sider. Skriv det ene ord `prune` i den for også at slette wiki-sider, der ikke findes i `wiki/`, så wikien altid er lig med mappen.
|
||||||
4. Gem `TOKEN_FOR_GITEA_WIKI` som en secret i repositoryets organisation med det scope, der står i [credentials.md](Credentials.da).
|
4. Gem `TOKEN_FOR_GITEA_WIKI` som en secret i repositoryets organisation med det scope, der står i [credentials.md](Credentials.da).
|
||||||
5. Flet ændringen til `main`. Loggen skal slutte med `Published <n> page(s) to the wiki of <owner>/<repo>`.
|
5. Flet ændringen til `main`. Loggen skal slutte med `Published <n> page(s) to the wiki of <owner>/<repo>`.
|
||||||
|
|||||||
+2
-1
@@ -57,7 +57,8 @@ like the sync workflow, but it writes only where a repository opts in.
|
|||||||
|
|
||||||
1. Enable the wiki in the repository settings.
|
1. Enable the wiki in the repository settings.
|
||||||
2. Add Markdown pages to `wiki/`. The file name is the page name: `Home.md` is
|
2. Add Markdown pages to `wiki/`. The file name is the page name: `Home.md` is
|
||||||
the home page.
|
the home page. A hyphen in the name is a space in the page name: `Home-da.md`
|
||||||
|
is the page "Home da", and a link to it is `[Dansk](https://git.tirsystem.com/TirSystem/github-action/src/branch/main/guides/Home-da)`.
|
||||||
3. Add the marker `wiki/.publish`. Leave it empty to create and update pages
|
3. Add the marker `wiki/.publish`. Leave it empty to create and update pages
|
||||||
only. Put the single word `prune` in it to also delete wiki pages that are
|
only. Put the single word `prune` in it to also delete wiki pages that are
|
||||||
not in `wiki/`, so the wiki always equals the folder.
|
not in `wiki/`, so the wiki always equals the folder.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!-- translation of Onboarding.md, source sha256 1d431898754e -->
|
<!-- translation of Onboarding.md, source sha256 0b11defd563a -->
|
||||||
|
|
||||||
> Ini ialah terjemahan [`Onboarding`](Onboarding). Halaman bahasa Inggeris ialah teks yang sah, dan perubahan di sini akan ditimpa pada penerbitan wiki yang seterusnya.
|
> Ini ialah terjemahan [`Onboarding`](Onboarding). Halaman bahasa Inggeris ialah teks yang sah, dan perubahan di sini akan ditimpa pada penerbitan wiki yang seterusnya.
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ Penghantaran adalah automatik, jadi repositori tidak memerlukan salinan aliran k
|
|||||||
Aliran kerja **Publish wiki** menyalin halaman Markdown dalam `wiki/` ke wiki repositori apabila perubahan pada `wiki/` digabungkan ke `main`. Ia dihantar seperti aliran kerja penyegerakan, tetapi hanya menulis di tempat repositori telah memilih untuk menyertainya.
|
Aliran kerja **Publish wiki** menyalin halaman Markdown dalam `wiki/` ke wiki repositori apabila perubahan pada `wiki/` digabungkan ke `main`. Ia dihantar seperti aliran kerja penyegerakan, tetapi hanya menulis di tempat repositori telah memilih untuk menyertainya.
|
||||||
|
|
||||||
1. Aktifkan wiki dalam tetapan repositori.
|
1. Aktifkan wiki dalam tetapan repositori.
|
||||||
2. Tambah halaman Markdown ke `wiki/`. Nama fail ialah nama halaman: `Home.md` ialah halaman utama.
|
2. Tambah halaman Markdown ke `wiki/`. Nama fail ialah nama halaman: `Home.md` ialah halaman utama. Tanda sempang dalam nama ialah ruang dalam nama halaman: `Home-da.md` ialah halaman "Home da", dan pautan kepadanya ialah `[Dansk](Home-da)`.
|
||||||
3. Tambah penanda `wiki/.publish`. Biarkan kosong untuk mencipta dan mengemas kini halaman sahaja. Letakkan satu perkataan `prune` di dalamnya untuk turut memadam halaman wiki yang tiada dalam `wiki/`, supaya wiki sentiasa sama dengan folder itu.
|
3. Tambah penanda `wiki/.publish`. Biarkan kosong untuk mencipta dan mengemas kini halaman sahaja. Letakkan satu perkataan `prune` di dalamnya untuk turut memadam halaman wiki yang tiada dalam `wiki/`, supaya wiki sentiasa sama dengan folder itu.
|
||||||
4. Simpan `TOKEN_FOR_GITEA_WIKI` sebagai secret organisasi repositori, dengan skop yang tertera dalam [credentials.md](Credentials.ms).
|
4. Simpan `TOKEN_FOR_GITEA_WIKI` sebagai secret organisasi repositori, dengan skop yang tertera dalam [credentials.md](Credentials.ms).
|
||||||
5. Gabungkan perubahan ke `main`. Log mesti berakhir dengan `Published <n> page(s) to the wiki of <owner>/<repo>`.
|
5. Gabungkan perubahan ke `main`. Log mesti berakhir dengan `Published <n> page(s) to the wiki of <owner>/<repo>`.
|
||||||
|
|||||||
Reference in New Issue
Block a user