-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
457 lines (456 loc) · 18.1 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
site_name: Plain License
site_url: https://plainlicense.org
repo_url: https://github.com/seekinginfiniteloop/PlainLicense
repo_name: PlainLicense
edit_uri: edit/main/docs/
copyright: Plain License's authors dedicate all original content to the public domain. No rights reserved.
hooks:
- overrides/hooks/hook_logger.py # Central logger for hooks (can also do plugins)
- overrides/hooks/socialmedia.py # Material hook for social media cards
- overrides/hooks/update_changelogs.py # Handles changelog updates for individual licenses
- overrides/hooks/license_factory.py # Assembles licenses from frontmatter and boilerplate (boilerplate below)
- overrides/hooks/env_settings.py # Adds to the jinja environment
- overrides/hooks/update_site_license.py # Updates the site license to match the latest Plain Unlicense
- overrides/hooks/shame_counter.py # Counts the number of 'shame words' in a license
site_description: >
Plain License: Terms for Everyone.
nav:
- home: index.md
- about: about/index.md
- faq: faq/index.md
- our licenses:
- licenses/index.md
- public domain:
- licenses/public-domain/index.md
- Unlicense: licenses/public-domain/unlicense/index.md
- permissive licenses:
- licenses/permissive/index.md
- MIT: licenses/permissive/mit/index.md
- copyleft licenses:
- licenses/copyleft/index.md
- MPL: licenses/copyleft/mpl-2.0/index.md
- source-available licenses:
- licenses/source-available/index.md
- Elastic License: licenses/source-available/elastic-2.0/index.md
- proprietary licenses:
- licenses/proprietary/index.md
- help:
- helping/index.md
- craft: helping/craft.md
- write: helping/write.md
- legal: helping/legal.md
- translate: helping/translate.md
- code: helping/code.md
- donate: helping/donate.md
- blog: blog/index.md
theme:
name: material
custom_dir: overrides
logo: assets/images/logo_named.svg
favicon: favicon.ico
features:
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
- content.code.select
- content.tabs.link
- content.tooltips
- content.footnote.tooltips
- navigation.footer
- navigation.indexes
- navigation.instant
- navigation.instant.progress
- navigation.path
- navigation.sections
- navigation.tabs
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
icon:
repo: simple/github
edit: material/pencil
view: material/eye
tag: # These are the icons for the tags in the license frontmatter. They map to the tag name in the license frontmatter.
canshare: octicons/share-24
cansell: fontawesome/solid/money-bill-1
canchange: material/file-edit
canrevoke: nounproject/revoke
required: nounproject/required
allowed: nounproject/allowed
relicense: nounproject/relicense
copyleft: nounproject/copyleft
givecredit: nounproject/copyright
describechanges: octicons/file-diff-24
sharesource: octicons/book-24
palette:
# Palette toggle for system automatic mode; chooses the color scheme based on the user's system preference, but allows the user to override it.
- media: "(prefers-color-scheme)"
primary: custom
accent: custom
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
primary: custom
accent: custom
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
primary: custom
accent: custom
scheme: default
toggle:
icon: material/brightness-auto
name: Switch to system preference
plugins:
- blog:
blog_dir: blog
blog_toc: true
post_url_format: "{slug}"
post_excerpt_max_categories: 3
categories_allowed: # all blog entries must have at least one of these categories, and cannot have any other categories
- plain writing
- announcements
- updates
- community
- how-to
- licensing
draft_if_future_date: true
- macros
- offline
- rss:
match_path: blog/posts/.*
date_from_meta:
as_creation: date.created
as_update: date.updated
- search:
separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
#- shame_counter
- social:
cards_layout_options:
font_family: Raleway
color: "#FFFFFF"
background_color: "#0d19a3"
image: overrides/images/social_logo.png
- tags:
tags: true
enabled: true
tags_file: tags.md
- privacy:
assets: true
assets_fetch: true
- git-revision-date-localized:
enable_creation_date: true
fallback_to_build_date: true
type: date
- git-authors
markdown_extensions:
- abbr
- def_list
- footnotes
- attr_list
- md_in_html
- markdown.extensions.meta
- pymdownx.blocks.admonition
- pymdownx.blocks.definition
- pymdownx.blocks.details
- pymdownx.blocks.html
- pymdownx.tabbed:
alternate_style: true
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons
- pymdownx.highlight:
default_lang: markdown
guess_lang: true
line_spans: __codeline
line_anchors: __codelineno
anchor_linenums: true
use_pygments: true
- pymdownx.betterem
- pymdownx.critic
- pymdownx.caret
- pymdownx.inlinehilite
- pymdownx.keys:
separator: +
strict: false
camel_case: false
- pymdownx.mark
- pymdownx.magiclink:
hide_protocol: true
repo_url_shortener: true
social_url_shortener: true
repo_url_shorthand: true
social_url_shorthand: true
provider: github
user: seekinginfiniteloop
repo: PlainLicense
- pymdownx.progressbar:
progress_increment: 20
- pymdownx.smartsymbols
- pymdownx.snippets:
auto_append:
- includes/abbreviations.md
base_path:
- /
- pymdownx.saneheaders
- pymdownx.superfences:
disable_indented_code_blocks: true
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.striphtml:
strip_comments: true
- pymdownx.tilde
- sane_lists
- tables
- toc:
toc_depth: 3
permalink_title: An anchor link you can use to share this section
permalink: true
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
percent_encode: true
watch:
- includes
- overrides
- mkdocs.yml
not_in_nav: |
index*
CHANGELOG*
tags
shame*
extra:
tags: # maps the tags in the license front matter to the names above in theme.icon.tag. This allows us to replace the tag with an icon in the license template.
can-share: canshare
can-sell: cansell
can-change: canchange
can-revoke: canrevoke
relicense: relicense
share-alike (strict): copyleft
share-alike (relaxed): copyleft
give-credit: givecredit
describe-changes: describechanges
share-source: sharesource
boilerplate:
# boilerplate for licenses; you don't need to change this
# The placeholders (e.g. {{ original_name | trim }}) are jinja2 placeholders and are replaced with the values in the license frontmatter when the license is built.
description: >
Plain License: {{ plain_name | trim }}. Terms for everyone. The {{ original_name | trim }}, but now in plain language for everyone to understand.
plain_url: >
"licenses/{{ category.lower() | trim }}/{{ spdx_id.lower() | trim }}/"
github_base_url: >
https://github.com/seekinginfiniteloop/PlainLicense
github_issues_link: >
[submit an issue](https://github.com/seekinginfiniteloop/PlainLicense/issues/new/choose "Submit an issue on GitHub")
github_edit_link: >
[edit this page](https://github.com/seekinginfiniteloop/PlainLicense/edit/main/docs/licenses/{{ category.lower() | trim }}/{{ spdx_id.lower() | trim }}/index.md "Edit this license on GitHub")
hide: # list of mkdocs components to hide in licenses; the table of contents is already hidden in the license template.
official_link: >
[{{ original_name | trim }}]({{ original_url | trim }} "Official {{ original_name | trim }}")
interpretation_title: >
Legally Interpreting the {{ plain_name | trim }}
interpretation_text: |
The {{ plain_name | trim }} is a plain language version of the {{ original_name | trim }}. We wrote it to make the {{ original_name | trim }} more accessible and understandable. We tried to match the {{ original_name | trim }}'s legal intent. We didn't intend any differences in meaning. **If you are using the {{ plain_name | trim }} in a legal context, you should refer to the official {{ original_name | trim }} for clarification.**
If a court finds that any part of this {{ license_type | trim }} can't be enforced, the rest of the {{ license_type | trim }} terms still apply.
how: |
<p>Create a LICENSE or LICENSE.md file in the base of your project. If your project is on Github or another platform that uses markdown, copy the <a class="how_link" href=#markdown>markdown version</a> using the copy icon. If your platform doesn't support markddown, use the <a class="how_link" href="#plaintext">plaintext version</a>, or provide a link to our <a class="how_link" href="#reader">reader version</a>.</p> <p><strong>Notices</strong>: the licensing community usually recommends adding a short notice to each part of your project telling readers how the work is licensed and how they can use it. For software projects, this is at the top of each module or file.</p>
tag_text: # These values map to each of the tags in the license frontmatter, and are used for tooltips.
can-share: >
Share Freely: You can share or distribute any work that uses this {{ license_type }} freely.
can-sell: >
Use Commercially: You can sell any work that uses this {{ license_type }}, and you don't have to pay the authors anything or share your changes with them.
can-change: >
Change freely: You can change any work that uses this {{ license_type }} however you want.
can-revoke: >
Take-backs: You can revoke this license from any work that uses it at any time if you hold the copyright.
relicense: >
Relicense: You can change the {{ license_type }} to a different license if you want. You may need to follow certain rules, like giving credit to the original author.
share-alike (strict): >
Share-Alike (strict): You must share your changes under the same license if you change or modify any work that uses this license.
share-alike (relaxed): >
Share-Alike (relaxed): You must share your changes under the same license or a similar one if you change or modify any work that uses this license.
give-credit: >
Give Credit: You must give credit to the original author of any work that uses this license, usually by including their name and the original license in your work.
describe-changes: >
Describe Changes: You must describe any changes you make to any work that uses this license.
share-source: >
Share Your Work: You must share the source code of any work that uses this license.
extensions: # These are the extensions we use in our documentation for making the most of markdown for writing plainly. They map the extension name in markdown_extensions to a human-readable name, a URL to the extension's documentation, and a description of what the extension does.
abbr:
name: abbreviations and acronyms
url: >
https://squidfunk.github.io/mkdocs-material/reference/tooltips/#adding-abbreviations "Adding abbreviations and acronyms with tooltips"
description: >
Add abbreviations and acronyms with tooltips. You can do this sitewide by adding to [abbreviations.md](https://github.com/seekinginfiniteloop/PlainLicense/edit/main/includes/abbreviations.md "/includes/abbreviations.md") or on a per-page basis.
betterem:
name: better emphasis
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/betterem/ "Better emphasis in markdown"
description: Adds support for smarter emphasis in markdown, including nested emphasis and better handling of underscores.
admonition:
name: admonitions (blocks API)
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/admonition/ "Adding callout boxes with the blocks API"
description: Add callout boxes. Use this to highlight important information or warnings.
details:
name: collapsible details (blocks API)
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/details/ "Adding collapsible detail blocks with the blocks API"
description: Add collapsible detail blocks. By default, they start collapsed.
critic:
name: critic markup
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/critic/ "Adding critic markup to markdown"
description: >
Add [critic markup](http://criticmarkup.com/). Use this to suggest changes or make comments.
def_list:
name: definition lists
url: >
https://squidfunk.github.io/mkdocs-material/reference/lists/?h=def+list "Adding definition lists"
description: Add definition lists. Use this to define terms or concepts.
emoji:
name: emoji and icons
url: >
https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/ "Adding emoji and icons"
description: Add emoji and icons. Use this to add visual interest or to convey meaning.
footnotes:
name: footnotes
url: >
https://squidfunk.github.io/mkdocs-material/reference/footnotes/ "Adding footnotes"
description: Add footnotes to provide additional information or context. Use this to avoid cluttering.
mark:
name: mark text (highlight)
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/mark/ "Highlight text in markdown"
description: Add the ability to highlight text. Use this to draw attention to important information.
smartsymbols:
name: smart symbols
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/ "Adding smart symbols to markdown"
description: >
Easily add special characters and symbols without needing to remember the code. One we use a lot here: `(c)` for copyright (c).
tables:
name: tables
url: >
https://squidfunk.github.io/mkdocs-material/reference/data-tables/ "Adding sortable tables"
description: Add sortable tables.
tilde:
name: tilde strikethrough
url: >
https://facelessuser.github.io/pymdown-extensions/extensions/tilde/ "Adding strikethrough text with tildes"
description: Use strikethrough text with tildes. Use this to show deleted text or to indicate changes.
shame_words: # These are 'shame words' for calculating the wall of shame (forthcoming). We use this list to determine how many 'shame words' are in the original license. The values are plain language alternatives to the more complex terms.
# TODO: Change implementation to use the stem or lexxer of the word as the key, and the plain language alternative as the value so we don't have to list every form of the word.
absence: lack
additional: more
alter: change
ancillary: supporting
apparatus: tool
applicable: related
arising from: caused by
arising: caused by
combination: mix
compatibility: ability to work together
compatible: able to work together
compliance: following the rules
comply: follow
consequential: related
constitute: make up
construed: understood
convey: share
conveyance: sharing
detriment: harm
display: show
distribute: share
distributes: shares
effectuate: carry out
enforce: make sure the rules are followed
enforcement: making sure the rules are followed
entity: person or organization
equivalent: same, similar
exclusion: not included
exercise: use
exercising: using
exploit: use
express: say, state
expressed: said, stated
expressly: clearly
fitness: ability
furnished: given
grant: give
hereby: now
hereof: this
hereunder: in this
implied: suggested
impossible: can't
incompatible: not able to work together
indemnify: protect
infringed: violated
infringements: violations
interest: share in
invalid: not valid
irrevocable: permanent
jurisdiction: area of law, place where the law applies, court
licenseable: can license
licensee: user
licensees: users
licensor: creator, author
licensors: creators, authors
litigation: lawsuit
location: place
merchantability: good enough to sell
merchantable: good enough to sell
modification: change
modified: changed
modify: change
moreover: also
non-exclusive: not the only, shared
noninfringement: not violating
notwithstanding: despite, including
obligation: duty, responsibility, requirement
obscure: hide
obtaining: getting
on behalf of: for
perform: do
permit: allow
permitted: allowed
prohibited: not allowed
propagate: share or spread
proprietary: owned
provisions: rules
publish: share
regulation: rule
relinquish: give up
relinquishment: giving up
remedy: fix, make right
reproduce: copy
royalty-free: free
shall: will
statute: law
steward: caretaker
stewardship: care
sublicensable: can license
subsequent: later
survive: last, continue
terminate: end
termination: end
thereof: that
third party: other person or organization
unencumbered: free
unmodified: unchanged
with respect to: about