Skip to content

Commit 40c4ae7

Browse files
authored
Merge pull request publiccodenet#1 from Lin-Chia-Cheng/steps_dev
Steps dev
2 parents 3d3dd65 + 2083768 commit 40c4ae7

File tree

231 files changed

+45470
-24426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+45470
-24426
lines changed

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# 2019-2022 by The Foundation for Public Code <[email protected]>
2+
# SPDX-FileCopyrightText: 2019-2022 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
33

4-
# Auto detect text files and perform LF normalization
4+
# Auto detect text files and perform end-of-line normalization
55
* text=auto

.github/workflows/link-check.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# 2021-2022 by The Foundation for Public Code <[email protected]>
2+
# SPDX-FileCopyrightText: 2021-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
33

4-
name: Scheduled link check
4+
name: local link check
55
on:
6-
schedule:
6+
workflow_dispatch: {}
7+
# schedule:
78
# ┌───────────── minute (0 - 59)
89
# │ ┌───────────── hour (0 - 23)
910
# │ │ ┌───────────── day of the month (1 - 31)
@@ -13,22 +14,29 @@ on:
1314
# │ │ │ │ │
1415
# │ │ │ │ │
1516
# * * * * *
16-
- cron: '7 1 * * *' # every day at 01:07 (UTC?)
17+
# - cron: '7 1 * * *' # every day at 01:07 (UTC?)
1718

1819
defaults:
1920
run:
2021
shell: bash
2122

2223
jobs:
2324
cibuild:
25+
if: ${{ github.repository == 'publiccodenet/standard' }}
2426
runs-on: ubuntu-latest
2527
steps:
2628
- uses: actions/checkout@v2
2729
- uses: ruby/setup-ruby@v1
2830
with:
2931
ruby-version: '2.7'
32+
- name: install-deps
33+
run: >
34+
sudo apt-get install -y
35+
aspell
36+
aspell-en
3037
- run: bundle install
3138
- run: ./script/test-markdown.sh
3239
- run: ./script/test-with-link-check.sh
3340
- run: ./script/find-missing-spdx.sh
3441
- run: ./script/missing-glossary-links.sh
42+
- run: ./script/spell-check.sh

.github/workflows/release-on-tag.yml

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# SPDX-License-Identifier: CC0-1.0
2+
# SPDX-FileCopyrightText: 2021-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
3+
4+
name: release-on-tag
5+
on:
6+
push:
7+
tags:
8+
- "trigger-*.*.*" # tag example: trigger-0.4.1
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
release-the-tag:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v3
20+
with:
21+
# fetch-depth: "0" fetches whole history
22+
fetch-depth: "0"
23+
ssh-key: ${{secrets.PUBLICCODE_DEPLOY_KEY}}
24+
- name: fetch-tags
25+
run: git fetch origin +refs/tags/*:refs/tags/*
26+
- name: echo-github-ref
27+
run: echo github-ref "${{ github.ref }}"
28+
- name: release-tag
29+
id: release-tag
30+
run: >
31+
echo "RELEASE_TAG=$(echo ${{ github.ref }} | sed -e's@.*trigger-@@')"
32+
>> $GITHUB_OUTPUT
33+
- name: echo-output
34+
run: echo RELEASE_TAG "${{ steps.release-tag.outputs.RELEASE_TAG }}"
35+
- name: git-remote-v
36+
run: git remote -v
37+
- name: git-fetch
38+
run: git fetch --all
39+
- name: git-switch-release
40+
run: git switch release-${{ steps.release-tag.outputs.RELEASE_TAG }}
41+
- name: git-log-5
42+
run: git log -5
43+
- name: set-git-user-email
44+
run: git config user.email "[email protected]"
45+
- name: set-git-user-name
46+
run: git config user.name "release-on-tag"
47+
- name: git-merge-main
48+
run: git merge origin/main
49+
- name: install-deps
50+
# https://yaml.org/spec/1.2.2/#65-line-folding
51+
run: >
52+
sudo apt-get install -y
53+
ruby
54+
ruby-bundler
55+
fontconfig
56+
python3.10-venv
57+
python3-pip
58+
pandoc
59+
qpdf
60+
libxml2-utils
61+
- name: bundle-install
62+
run: bundle install
63+
- name: install-fonts
64+
run: script/ensure-font.sh
65+
- name: update-changelog-date
66+
run: script/update-changelog-date.sh
67+
- name: update-publiccode-yml-date
68+
run: >
69+
sed -i
70+
-e"s/^releaseDate.*/releaseDate: '$(date --utc +%Y-%m-%d)'/"
71+
publiccode.yml
72+
- name: update-publiccode-yml-version
73+
run: >
74+
sed -i
75+
-e"s@^softwareVersion: .*@softwareVersion: ${{ steps.release-tag.outputs.RELEASE_TAG }}@"
76+
publiccode.yml
77+
- name: update-published-version-numbers
78+
run: >
79+
sed -i
80+
-e"s@<span class=\"standard-version\">[^<]*</span>@<span class=\"standard-version\">${{ steps.release-tag.outputs.RELEASE_TAG }}</span>@"
81+
docs/review-template.html
82+
docs/checklist.html
83+
print-cover.html
84+
standard-print.html
85+
- name: update-readme-version
86+
run: >
87+
sed -i
88+
-e"s@\[version [^]]*\](assets/version-badge\.svg)@[version ${{ steps.release-tag.outputs.RELEASE_TAG }}](assets/version-badge.svg)@"
89+
README.md
90+
- name: update-version-badge.sh
91+
run: script/make-version-badge.sh ${{ steps.release-tag.outputs.RELEASE_TAG }}
92+
- name: build-pdf
93+
run: script/pdf.sh ${{ steps.release-tag.outputs.RELEASE_TAG }}
94+
- name: create-release-body
95+
run: script/release-body.sh ${{ steps.release-tag.outputs.RELEASE_TAG }}
96+
- name: do-git-add
97+
run: >
98+
git add
99+
CHANGELOG.md
100+
README.md
101+
publiccode.yml
102+
assets/version-badge.svg
103+
docs/review-template.html
104+
docs/checklist.html
105+
print-cover.html
106+
standard-print.html
107+
- name: do-git-commit
108+
run: git commit -m'Set CHANGELOG date, and version numbers'
109+
- name: do-git-tag
110+
run: git tag ${{ steps.release-tag.outputs.RELEASE_TAG }}
111+
- name: do-git-push
112+
run: if [ "_$(echo ${{ steps.release-tag.outputs.RELEASE_TAG }} | grep -i 'rc')_" != "__" ]; then echo "skipping push to main" ; else git push origin release-${{ steps.release-tag.outputs.RELEASE_TAG }}:main ; fi
113+
- name: do-git-push-tags
114+
run: git push --tags
115+
- name: do-git-delete-trigger-tag-remote
116+
run: git push origin :trigger-${{ steps.release-tag.outputs.RELEASE_TAG }}
117+
- name: do-git-delete-trigger-tag-local
118+
run: git tag -d trigger-${{ steps.release-tag.outputs.RELEASE_TAG }}
119+
- name: upload
120+
uses: softprops/action-gh-release@v1
121+
with:
122+
tag_name: ${{ steps.release-tag.outputs.RELEASE_TAG }}
123+
prerelease: true
124+
files: |
125+
standard-*.pdf
126+
standard-*.epub
127+
body_path: release.body
128+
- name: git-fetch-again
129+
run: git fetch --all
130+
- name: git-switch-develop
131+
run: git switch develop
132+
- name: git-merge-main
133+
run: git merge origin/main
134+
- name: git-push
135+
run: git push -u origin develop

.github/workflows/test.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# 2021-2022 by The Foundation for Public Code <[email protected]>
2+
# SPDX-FileCopyrightText: 2021-2022 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
33

44
name: Test
55
on:
@@ -18,9 +18,15 @@ jobs:
1818
- uses: ruby/setup-ruby@v1
1919
with:
2020
ruby-version: '2.7'
21+
- name: install-deps
22+
run: >
23+
sudo apt-get install -y
24+
aspell
25+
aspell-en
2126
- run: bundle install
2227
- run: ./script/test-markdown.sh
2328
- run: ./script/test-without-link-check.sh
2429
- run: ./script/find-missing-spdx.sh
2530
- run: ./script/missing-glossary-links.sh
2631
- run: ./script/check-new-links.sh
32+
- run: ./script/spell-check.sh

.gitignore

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# 2019-2022 by The Foundation for Public Code <[email protected]>
2+
# SPDX-FileCopyrightText: 2019-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
33

44
Gemfile.lock
55
_site
6-
standard.pdf
7-
standard-cover.pdf
6+
_build_pdf
7+
*.pdf
8+
*.epub
89
vendor/
910
urls-sorted.txt
1011
urls.txt
12+
release.body
13+
*.orig
14+
node_modules/
15+
package-lock.json

.mdl_style.rb

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: CC0-1.0
2+
# SPDX-FileCopyrightText: 2021-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
3+
4+
# A detailed description of the rules is available at
5+
# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
6+
7+
# Lint markdown using the Markdownlint gem with the default ruleset
8+
all
9+
# except for:
10+
11+
# MD007 Unordered list indentation: we allow sub-lists to also have bullets
12+
exclude_rule 'MD007'
13+
14+
# MD013 Line length: we allow long lines
15+
exclude_rule 'MD013'
16+
17+
# MD029 Ordered list item prefix: we allow lists to be sequentially numbered
18+
exclude_rule 'MD029'
19+
20+
# Temporary hack to deal with weasyprint, see commit 831def8c3382
21+
# MD033 Inline HTML: hack in criteria/code-in-the-open.md line 53
22+
exclude_rule 'MD033'

.mdlrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: CC0-1.0
2+
# SPDX-FileCopyrightText: 2022-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
3+
4+
style './.mdl_style.rb'

404.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2+
# SPDX-License-Identifier: CC0-1.0
3+
# SPDX-FileCopyrightText: 2022-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
24
layout: default
35
title: Page not found
46
toc: false
57
---
68

7-
<!-- SPDX-License-Identifier: CC0-1.0 -->
8-
<!-- 2022 by The Foundation for Public Code <[email protected]> -->
9+
# 404 找不到網頁
910

10-
If you typed the web address, check it is correct.
11+
如果您是手動輸入網址,請確認網址是否正確。
1112

12-
If you pasted the web address, check you copied the entire address.
13+
如果您是複製貼上此網址,請確認是否有複製到完整的網址。
1314

14-
If the web address is correct or you selected a link or button, email the [Foundation for Public Code staff](mailto:[email protected]) so we'll be able to help you out, as well as correct our mistake.
15+
若網址正確,或您是按下連結或按鈕來的,請寫信給 [Foundation for Public Code 員
16+
](mailto:[email protected]),讓我們協助您,並同時修正我們的錯誤。

AUTHORS.md

+26-22
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
# Authors
1+
---
2+
# SPDX-License-Identifier: CC0-1.0
3+
# SPDX-FileCopyrightText: 2019-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
4+
---
25

3-
<!-- SPDX-License-Identifier: CC0-1.0 -->
4-
<!-- written in 2019 - 2022 by The Foundation for Public Code <[email protected]> -->
6+
# 作者群
57

6-
* Alba Roza, [The Foundation for Public Code](https://publiccode.net)
8+
* Alba Roza[Foundation for Public Code](https://publiccode.net/)
79
* Arnout Engelen
8-
* Arnout Schuijff, The Foundation for Public Code
9-
* Audrey Tang, [digitalminister.tw](https://digitalminister.tw/)
10-
* Ben Cerveny, The Foundation for Public Code
10+
* Arnout SchuijffFoundation for Public Code
11+
* 唐鳳,[數位發展部](https://digitalminister.tw/)
12+
* Ben CervenyFoundation for Public Code
1113
* Bert Spaan
12-
* Boris van Hoytema, The Foundation for Public Code
14+
* Boris van HoytemaFoundation for Public Code
1315
* Charlotte Heikendorf
14-
* Claus Mullie, The Foundation for Public Code
16+
* Claus MullieFoundation for Public Code
1517
* David Barberi
16-
* Edo Plantinga, [Code For NL](https://codefor.nl/)
17-
* Elena Findley-de Regt, The Foundation for Public Code
18-
* Eric Herman, The Foundation for Public Code
19-
* Felix Faassen, The Foundation for Public Code
18+
* Edo Plantinga[Code For NL](https://codefor.nl/)
19+
* Elena Findley-de RegtFoundation for Public Code
20+
* Eric HermanFoundation for Public Code
21+
* Felix FaassenFoundation for Public Code
2022
* Floris Deerenberg
21-
* Jan Ainali, The Foundation for Public Code
22-
* Johan Groenen, Code For NL
23+
* Jan AinaliFoundation for Public Code
24+
* Johan GroenenCode For NL
2325
* Marcus Klaas de Vries
24-
* Mark van der Net, [Gemeente Amsterdam](https://www.amsterdam.nl/en/)
25-
* Martijn de Waal, [Amsterdam University of Applied Sciences (AUAS)](https://www.amsterdamuas.com/), Faculty of Digital Media and Creative Industries, Lectorate of Play & Civic Media
26+
* Mark van der Net,[阿姆斯特丹市政府](https://www.amsterdam.nl/en/)
27+
* Martijn de Waal,[阿姆斯特丹應用科技大學 (AUAS)](https://www.amsterdamuas.com/),數位媒體與創意產業學院,
28+
戲劇與公民媒體系講師
29+
* Matti Schneider
2630
* Mauko Quiroga
27-
* Maurice Hendriks, Gemeente Amsterdam
28-
* Maurits van der Schee, Gemeente Amsterdam
29-
* Mirjam van Tiel, The Foundation for Public Code
31+
* Maurice Hendriks, 阿姆斯特丹市政府
32+
* Maurits van der Schee,阿姆斯特丹市政府
33+
* Mirjam van TielFoundation for Public Code
3034
* Ngô Ngọc Đức Huy
3135
* Paul Keller
32-
* Petteri Kivimäki, [Nordic Institute for Interoperability Solutions (NIIS)](https://niis.org)
36+
* Petteri Kivimäki[北歐互通性解決方案機構 (NIIS)](https://niis.org)
3337
* Sky Bristol
34-
* Tamas Erkelens, Gemeente Amsterdam
38+
* Tamas Erkelens,阿姆斯特丹市政府
3539
* Timo Slinger

CC0-1.0.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
# SPDX-License-Identifier: CC0-1.0
3+
# SPDX-FileCopyrightText: 2022-2023 The Foundation for Public Code <[email protected]>, https://standard.publiccode.net/AUTHORS
4+
toc: false
5+
redirect_from:
6+
- license.html
7+
- LICENSE.html
8+
---
9+
10+
# 創用 CC0 1.0 通用授權
11+
12+
<!-- TODO FIXME: move styling to the proper place, not inline html -->
13+
<style>.highlight { flex: 2 2 80%; max-width: 100%; } </style>
14+
15+
此授權的法律契約,允許任何人任意使用本文件中的任何內容。
16+
17+
```text
18+
{% include_relative LICENSE %}
19+
```

0 commit comments

Comments
 (0)