Compare commits

..

13 commits
v0.4.1 ... main

Author SHA1 Message Date
Jan T. Sott
eaba9eb3f6
Create FUNDING.yml 2024-10-27 11:38:57 +01:00
Jan T. Sott
1559cd3e5b 0.4.2 2024-09-20 23:48:49 +02:00
Jan T. Sott
80ed389cc7 update pipeline 2024-09-20 23:48:12 +02:00
Jan T. Sott
353f02b3ec update url 2024-09-20 23:47:04 +02:00
Jan T. Sott
ce7fd1557e update pipeline 2024-09-20 23:45:32 +02:00
Jan T. Sott
28fd581f20 reorder params 2024-09-20 23:45:06 +02:00
Jan T. Sott
6d690c002c update pipeline 2024-09-20 23:44:18 +02:00
Jan T. Sott
7c3be2621c update tooling 2024-09-20 23:41:53 +02:00
Jan T. Sott
aae8ce8428 update dependencies 2024-09-20 23:37:42 +02:00
Jan T. Sott
b6c35dc329
Merge pull request #25 from SeyyedKhandon/patch-1 2023-08-11 18:07:58 +02:00
SeyyedKhandon
82051b5642
doc: Update by-nc-nd.markdown
fix missing space
2023-08-10 21:23:28 +03:30
SeyyedKhandon
e6b11aa40a
Update by-nc-nd.markdown
add `The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication.` addition from the main license based on https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
2023-06-30 12:51:03 +03:30
Jan T. Sott
97d40ca9eb
fix shields.io badge 2023-03-17 21:48:48 +01:00
9 changed files with 1659 additions and 1253 deletions

21
.editorconfig Normal file
View file

@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.{ls,yml,yaml}]
indent_style = space
[*.{cjs,js,mjs,ts}]
block_comment_start = /*
block_comment = *
block_comment_end = */
[*.{markdown,md}]
indent_style = space
trim_trailing_whitespace = false

1
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1 @@
buy_me_a_coffee: idleberg

View file

@ -1,38 +0,0 @@
name: CI
on: [push]
jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['*', 'lts/*']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2
with:
version: 6
run_install: |
- recursive: true
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Run Tests
run: pnpm run test --if-present

65
.github/workflows/node.yml vendored Normal file
View file

@ -0,0 +1,65 @@
name: 'Run tests on NodeJS'
on:
push:
paths:
- '.github/workflows/node.yml'
- '1.0/*'
- '2.0/*'
- '2.5/*'
- '3.0/*'
- '4.0/*'
- 'legacy/*'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/workflows/node.yml'
- '1.0/*'
- '2.0/*'
- '2.5/*'
- '3.0/*'
- '4.0/*'
- 'legacy/*'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*', '*']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 10
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
- name: Enable Corepack
run: corepack enable
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_store_path::$(pnpm store path)"
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
name: Set up pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_store_path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: |
pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Lint Markdown
run: pnpm run --if-present test

1
.husky/pre-commit Executable file
View file

@ -0,0 +1 @@
npx lint-staged

View file

@ -152,6 +152,6 @@ c. No term or condition of this Public License will be waived and no failure to
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
>
> Creative Commons may be contacted at [creativecommons.org](http://creativecommons.org).

View file

@ -1,45 +1,47 @@
{
"name": "cc-md",
"version": "0.4.1",
"description": "Markdown-formatted Creative Commons licenses",
"author": "idleberg",
"license": "CC0-1.0",
"files": [
"1.0/",
"2.0/",
"2.5/",
"3.0/",
"4.0/",
"legacy/",
"LICENSE",
"readme.markdown"
],
"scripts": {
"lint": "npm run test",
"test": "remark -u lint ./**/*.markdown ./readme.markdown"
},
"keywords": [
"markdown",
"creative",
"commons",
"licenses",
"cc"
],
"repository": {
"type": "git",
"url": "git+https://github.com/idleberg/Creative-Commons-Markdown.git"
},
"bugs": {
"url": "https://github.com/idleberg/Creative-Commons-Markdown/issues"
},
"homepage": "https://github.com/idleberg/Creative-Commons-Markdown#readme",
"devDependencies": {
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"remark-cli": "^11.0.0",
"remark-lint": "^9.1.1"
},
"lint-staged": {
"*.{md|markdown}": "remark -u lint"
}
"name": "cc-md",
"version": "0.4.2",
"description": "Markdown-formatted Creative Commons licenses",
"author": "idleberg",
"license": "CC0-1.0",
"files": [
"1.0/",
"2.0/",
"2.5/",
"3.0/",
"4.0/",
"legacy/",
"LICENSE",
"readme.markdown"
],
"scripts": {
"lint": "npm run test",
"prepare": "husky",
"test": "remark -u lint ./**/*.markdown ./readme.markdown"
},
"keywords": [
"markdown",
"creative",
"commons",
"licenses",
"cc"
],
"repository": {
"type": "git",
"url": "git+https://github.com/idleberg/Creative-Commons-Markdown.git"
},
"bugs": {
"url": "https://github.com/idleberg/Creative-Commons-Markdown/issues"
},
"homepage": "https://github.com/idleberg/Creative-Commons-Markdown#readme",
"devDependencies": {
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"remark-cli": "^12.0.1",
"remark-lint": "^10.0.0"
},
"lint-staged": {
"*.{md|markdown}": "remark -u lint"
},
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}

2689
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,8 @@
# Creative Commons Markdown
[![npm](https://flat.badgen.net/npm/license/cc-md)](https://www.npmjs.org/package/cc-md)
[![npm](https://flat.badgen.net/npm/v/cc-md)](https://www.npmjs.org/package/cc-md)
[![CI](https://img.shields.io/github/workflow/status/idleberg/Creative-Commons-Markdown/CI?style=flat-square)](https://github.com/idleberg/Creative-Commons-Markdown/actions)
[![License](https://img.shields.io/npm/l/cc-md?color=blue&style=for-the-badge)](https://github.com/idleberg/Creative-Commons-Markdown/blob/main/LICENSE)
[![Version: npm](https://img.shields.io/npm/v/cc-md?style=for-the-badge)](https://www.npmjs.org/package/cc-md)
[![CI: Node](https://img.shields.io/github/actions/workflow/status/idleberg/Creative-Commons-Markdown/node.yml?logo=nodedotjs&logoColor=white&style=for-the-badge)](https://github.com/idleberg/Creative-Commons-Markdown/actions)
On November 25th, 2013, [Creative Commons](http://creativecommons.org/) announced their next generation licenses: [Creative Commons 4.0](https://creativecommons.org/weblog/entry/40768). By default, these are available as [HTML](http://creativecommons.org/licenses/) or [plaintext](http://creativecommons.org/weblog/entry/41127). This project adds [Markdown](http://daringfireball.net/projects/markdown/)-formatted licenses to that list, while aiming for best [compatibility on GitHub](https://github.github.com/gfm/).