Compare commits

..

No commits in common. "main" and "v0.4.0" have entirely different histories.
main ... v0.4.0

36 changed files with 1257 additions and 1675 deletions

38
.circleci/config.yml Normal file
View file

@ -0,0 +1,38 @@
version: 2.1
commands:
run-tests:
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Installing Dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Lint Source
command: npm run test
jobs:
node-latest:
docker:
- image: circleci/node:latest
steps:
- run-tests
node-lts:
docker:
- image: circleci/node:lts
steps:
- run-tests
workflows:
node-multi-build:
jobs:
- node-latest
- node-lts
version: 2

View file

@ -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
View file

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

View file

@ -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

4
.gitignore vendored
View file

@ -2,7 +2,3 @@ bower_components/
node_modules/
vendor/
package-lock.json
# temporay
src/
TODO.md

View file

@ -1 +0,0 @@
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.” 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).

View file

@ -1 +0,0 @@
4.0/zero.markdown

1
latest
View file

@ -1 +0,0 @@
./4.0/

View file

@ -1,23 +1,17 @@
{
"name": "cc-md",
"version": "0.4.2",
"version": "0.4.0",
"description": "Markdown-formatted Creative Commons licenses",
"author": "idleberg",
"license": "CC0-1.0",
"license": "Unlicense",
"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"
"test": "remark -u lint ./4.0/*.markdown ./legacy/**/*.markdown"
},
"keywords": [
"markdown",
@ -35,13 +29,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"
}
}

2707
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
# Creative Commons Markdown
[![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)
[![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)
[![CircleCI](https://flat.badgen.net/circleci/github/idleberg/Creative-Commons-Markdown)](https://circleci.com/gh/idleberg/Creative-Commons-Markdown)
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/).