From c3d4444f9d9f386b58a381e3fe7699f013657ce4 Mon Sep 17 00:00:00 2001 From: jodeebrowm <79209211+jodeebrowm@users.noreply.github.com> Date: Wed, 17 Feb 2021 18:59:57 +0000 Subject: [PATCH 1/6] Fix misplaced empty line in CC-BY-SA 4.0 plain text --- docroot/legalcode/by-sa_4.0.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docroot/legalcode/by-sa_4.0.txt b/docroot/legalcode/by-sa_4.0.txt index a73481c4b..2d58298e6 100644 --- a/docroot/legalcode/by-sa_4.0.txt +++ b/docroot/legalcode/by-sa_4.0.txt @@ -303,8 +303,8 @@ apply to Your use of the Licensed Material: contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. From b18b13e087cc6133b857277801656144900619e6 Mon Sep 17 00:00:00 2001 From: jodeebrowm <79209211+jodeebrowm@users.noreply.github.com> Date: Wed, 17 Feb 2021 19:02:45 +0000 Subject: [PATCH 2/6] Unify plain text layout of Section 4 of CC-BY-ND 4.0 Add empty lines between items in Section 4 of CC-BY-ND 4.0. This is in line with the layout of the other sections of CC-BY-ND 4.0 and with Section 4 of all the other CC licenses. --- docroot/legalcode/by-nd_4.0.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docroot/legalcode/by-nd_4.0.txt b/docroot/legalcode/by-nd_4.0.txt index 2c02bbea4..10fbcae9d 100644 --- a/docroot/legalcode/by-nd_4.0.txt +++ b/docroot/legalcode/by-nd_4.0.txt @@ -265,10 +265,12 @@ apply to Your use of the Licensed Material: to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database, provided You do not Share Adapted Material; + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. From 0fbe77f8895daa7d5e0261aef964e09ae61ed976 Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Thu, 28 Apr 2022 10:25:37 -0700 Subject: [PATCH 3/6] sync standard repo files with .github repo per https://github.com/creativecommons/.github/issues/26 --- CODE_OF_CONDUCT.md | 6 +++--- CONTRIBUTING.md | 17 ++++++++++------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index caaf7bb0b..30dc65364 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -8,6 +8,6 @@ project and all other Creative Commons open source projects are governed by our For a history of updates, see the [page history here][updates]. -[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/ -[reporting_guide]:https://opensource.creativecommons.org/community/code-of-conduct/enforcement/ -[updates]:https://github.com/creativecommons/creativecommons.github.io-source/commits/master/content/community/code-of-conduct/contents.lr +[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/ +[reporting_guide]: https://opensource.creativecommons.org/community/code-of-conduct/enforcement/ +[updates]: https://github.com/creativecommons/creativecommons.github.io-source/commits/main/content/community/code-of-conduct/contents.lr diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 987c22449..800641851 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,29 +3,32 @@ Thank you for your interest in contributing to CC Open Source! This document is a set of guidelines to help you contribute to this project. + ## Code of Conduct By participating in this project, you are expected to uphold our [Code of Conduct][code_of_conduct]. -[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/ +[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/ + ## Project Documentation -The `README` in the root of the repository should contain or link to -project documentation. If you cannot find the documentation you're -looking for, please file a GitHub issue with details of what -you'd like to see documented. +The `README` in the root of the repository should contain or link to project +documentation. If you cannot find the documentation you're looking for, please +file a GitHub issue with details of what you'd like to see documented. + ## How to Contribute Please follow the processes in our general [Contributing Code][contributing] guidelines on the Creative Common Open Source website. -[contributing]:https://opensource.creativecommons.org/contributing-code/ +[contributing]: https://opensource.creativecommons.org/contributing-code/ + ## Questions or Thoughts? Talk to us on [one of our community forums][community]. -[community]:https://opensource.creativecommons.org/community/ +[community]: https://opensource.creativecommons.org/community/ From f1a3cdcfdaa30323849e873d8dc40eb7aba51c82 Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Tue, 3 May 2022 07:42:27 -0700 Subject: [PATCH 4/6] replace circle ci with github actions --- .circleci/config.yml | 9 --------- .github/workflows/tidy.yml | 27 +++++++++++++++++++++++++++ tools/tidy_legalcode.sh | 12 ++++++++++++ 3 files changed, 39 insertions(+), 9 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/tidy.yml create mode 100755 tools/tidy_legalcode.sh diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 9b02e8139..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: 2 -jobs: - build: - machine: true - steps: - - checkout - - run: sudo apt-get update && sudo apt-get install -y tidy - - run: TRANSLATIONS=$(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD master)) - - run: for htmlfile in $TRANSLATIONS; do echo $htmlfile; tidy -errors -quiet $htmlfile; done diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml new file mode 100644 index 000000000..185fa42f4 --- /dev/null +++ b/.github/workflows/tidy.yml @@ -0,0 +1,27 @@ +name: tidy + +on: + pull_request: + push: + branches: [main] + workflow_dispatch: + +jobs: + checks: + runs-on: ubuntu-latest + + steps: + + - name: Install system dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update + sudo apt-get install -y tidy + + # https://github.com/actions/checkout + - uses: actions/checkout@v2 + + - name: Tidy Legal Code + run: | + ./tools/tidy_legalcode.sh diff --git a/tools/tidy_legalcode.sh b/tools/tidy_legalcode.sh new file mode 100755 index 000000000..459d6f2a5 --- /dev/null +++ b/tools/tidy_legalcode.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -o nounset +set -o pipefail + +tidy -errors -quiet -utf8 --show-filename yes --show-warnings no \ + docroot/legalcode/*.html \ + 2>&1 | sed -e'/^Tidy: /d' +case ${?} in + 2) exit 2;; # errors + 1) exit 0;; # warning (ignored) + 0) exit 0;; # success +esac From 49b657921cd00ca9f194c0c277c018dbe7828bc4 Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Tue, 3 May 2022 07:59:28 -0700 Subject: [PATCH 5/6] update names --- .github/workflows/tidy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index 185fa42f4..d685d5e13 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -1,4 +1,4 @@ -name: tidy +name: lint on: pull_request: @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - checks: + tidy: runs-on: ubuntu-latest steps: From ab26cc7c41ccb9907e934419fade5ed8d73c80b6 Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Tue, 31 May 2022 14:09:54 -0700 Subject: [PATCH 6/6] apply corrections identified by @sueka in #1235 --- docroot/legalcode/by-nc-nd_4.0_ja.html | 2 +- docroot/legalcode/by-nc-sa_4.0_ja.html | 2 +- docroot/legalcode/by-nc_4.0_ja.html | 2 +- docroot/legalcode/by-nd_4.0_ja.html | 2 +- docroot/legalcode/by-sa_4.0_ja.html | 2 +- docroot/legalcode/by_4.0_ja.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docroot/legalcode/by-nc-nd_4.0_ja.html b/docroot/legalcode/by-nc-nd_4.0_ja.html index 7d3d33225..bb018b9a1 100644 --- a/docroot/legalcode/by-nc-nd_4.0_ja.html +++ b/docroot/legalcode/by-nc-nd_4.0_ja.html @@ -252,7 +252,7 @@

クリエイティブ・コモンズ 表示-非営利-改変禁止 4.0 国 -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利

      diff --git a/docroot/legalcode/by-nc-sa_4.0_ja.html b/docroot/legalcode/by-nc-sa_4.0_ja.html index 74c9d6ed2..e4dcc80da 100644 --- a/docroot/legalcode/by-nc-sa_4.0_ja.html +++ b/docroot/legalcode/by-nc-sa_4.0_ja.html @@ -259,7 +259,7 @@

      クリエイティブ・コモンズ 表示 - 非営利 -継承 4.0 国際

    -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利

      diff --git a/docroot/legalcode/by-nc_4.0_ja.html b/docroot/legalcode/by-nc_4.0_ja.html index d45faa84c..c10e3f81f 100644 --- a/docroot/legalcode/by-nc_4.0_ja.html +++ b/docroot/legalcode/by-nc_4.0_ja.html @@ -255,7 +255,7 @@

      クリエイティブ・コモンズ 表示-非営利 4.0 国際 パブリ

    -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利

      diff --git a/docroot/legalcode/by-nd_4.0_ja.html b/docroot/legalcode/by-nd_4.0_ja.html index d97823f2d..4ef73360f 100644 --- a/docroot/legalcode/by-nd_4.0_ja.html +++ b/docroot/legalcode/by-nd_4.0_ja.html @@ -251,7 +251,7 @@

      クリエイティブ・コモンズ 表示-改変禁止 4.0 国際 パブ

    -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利

      diff --git a/docroot/legalcode/by-sa_4.0_ja.html b/docroot/legalcode/by-sa_4.0_ja.html index 63b75c149..d0b9dbcb5 100644 --- a/docroot/legalcode/by-sa_4.0_ja.html +++ b/docroot/legalcode/by-sa_4.0_ja.html @@ -258,7 +258,7 @@

      クリエイティブ・コモンズ 表示-継承 4.0 国際 パブリッ

    -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利

      diff --git a/docroot/legalcode/by_4.0_ja.html b/docroot/legalcode/by_4.0_ja.html index fa65f69b7..f0ff00366 100644 --- a/docroot/legalcode/by_4.0_ja.html +++ b/docroot/legalcode/by_4.0_ja.html @@ -253,7 +253,7 @@

      クリエイティブ・コモンズ 表示 4.0 国際 パブリック・ラ

    -
  • 支持表明がないこと 許諾者または第3条3(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • +
  • 支持表明がないこと 許諾者または第3条(a)(1)(A)(i)に定められている許諾者以外のクレジット表示の対象として指定されている者が、あなたまたはライセンス対象物のあなたによる利用について、関連している、援助・支持している、あるいは正式な地位を付与している、と主張または示唆することを本パブリック・ライセンスは許諾しておらず、またはそのように解釈されてはなりません。
  • その他の権利