Compare commits
No commits in common. "main" and "v0.4.1" have entirely different histories.
9 changed files with 1262 additions and 1668 deletions
|
@ -1,21 +0,0 @@
|
|||
# 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
1
.github/FUNDING.yml
vendored
|
@ -1 +0,0 @@
|
|||
buy_me_a_coffee: idleberg
|
38
.github/workflows/default.yml
vendored
Normal file
38
.github/workflows/default.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
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
65
.github/workflows/node.yml
vendored
|
@ -1,65 +0,0 @@
|
|||
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 +0,0 @@
|
|||
npx lint-staged
|
|
@ -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.” 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 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 may be contacted at [creativecommons.org](http://creativecommons.org).
|
||||
|
|
14
package.json
14
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cc-md",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.1",
|
||||
"description": "Markdown-formatted Creative Commons licenses",
|
||||
"author": "idleberg",
|
||||
"license": "CC0-1.0",
|
||||
|
@ -16,7 +16,6 @@
|
|||
],
|
||||
"scripts": {
|
||||
"lint": "npm run test",
|
||||
"prepare": "husky",
|
||||
"test": "remark -u lint ./**/*.markdown ./readme.markdown"
|
||||
},
|
||||
"keywords": [
|
||||
|
@ -35,13 +34,12 @@
|
|||
},
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
|
||||
}
|
||||
}
|
||||
|
|
2705
pnpm-lock.yaml
generated
2705
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,9 @@
|
|||
# Creative Commons Markdown
|
||||
|
||||
[](https://github.com/idleberg/Creative-Commons-Markdown/blob/main/LICENSE)
|
||||
[](https://www.npmjs.org/package/cc-md)
|
||||
[](https://github.com/idleberg/Creative-Commons-Markdown/actions)
|
||||
[](https://www.npmjs.org/package/cc-md)
|
||||
[](https://www.npmjs.org/package/cc-md)
|
||||
[](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/).
|
||||
|
||||
|
|
Reference in a new issue