From 72108b3a7076e66d6d2218cbef73ba4f51180df7 Mon Sep 17 00:00:00 2001 From: Rastislav Date: Sun, 25 Feb 2024 19:22:49 +0100 Subject: [PATCH 1/2] Auto update status --- .github/workflows/update-frontmatter.yml | 28 ++++++++++ docs/cip-workflow.md | 2 +- docusaurus.config.ts | 47 +++++++++++++++- package.json | 24 ++++---- .../BlogPostItem/Header/Author/index.tsx | 2 +- static/img/icons/icon-128.png | Bin 0 -> 3706 bytes static/img/icons/icon-256.png | Bin 0 -> 7571 bytes static/img/icons/icon-32.png | Bin 0 -> 1004 bytes static/img/icons/icon-48.png | Bin 0 -> 1492 bytes static/img/icons/icon-64.png | Bin 0 -> 1953 bytes static/manifest.json | 42 ++++++++++++++ update_frontmatter.py | 52 ++++++++++++++++++ 12 files changed, 183 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/update-frontmatter.yml create mode 100755 static/img/icons/icon-128.png create mode 100755 static/img/icons/icon-256.png create mode 100755 static/img/icons/icon-32.png create mode 100755 static/img/icons/icon-48.png create mode 100755 static/img/icons/icon-64.png create mode 100644 static/manifest.json create mode 100644 update_frontmatter.py diff --git a/.github/workflows/update-frontmatter.yml b/.github/workflows/update-frontmatter.yml new file mode 100644 index 0000000..c5b3550 --- /dev/null +++ b/.github/workflows/update-frontmatter.yml @@ -0,0 +1,28 @@ +name: Update Front Matter + +on: + schedule: + - cron: '0 0 */2 * *' # Runs at 00:00 UTC every 2 days + +jobs: + update-front-matter: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Dependencies + run: | + python3 -m pip install --upgrade pip + pip3 install python-frontmatter pyyaml + + - name: Update Front Matter in Markdown Files + run: python3 update_frontmatter.py + + - name: Commit changes + run: | + git config --global user.email "action@github.com" + git config --global user.name "GitHub Action" + git add -A + git diff --staged --quiet || git commit -m "Update front matter tags based on dates" + git push diff --git a/docs/cip-workflow.md b/docs/cip-workflow.md index bae6fc9..8c38758 100755 --- a/docs/cip-workflow.md +++ b/docs/cip-workflow.md @@ -83,7 +83,7 @@ Supported formats: - `First Last `: Email address. - `First Last (@github)`: GitHub username. - `First Last (@nickname@pod.tld)`: Nickname and pod (e.g., @coretalk.space). -- `First Last` `(cb00…@cp)` or ``: CoreID from CorePass. +- `First Last` `[cb00…@coreid]` or ``: CoreID from CorePass. ## Auxiliary Files diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 609fb91..d15b902 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -2,6 +2,11 @@ import {themes as prismThemes} from 'prism-react-renderer'; import type {Config} from '@docusaurus/types'; import type * as Preset from '@docusaurus/preset-classic'; +import remarkAbbr from 'remark-abbr'; +import fediverseUser from "remark-fediverse-user"; +import remarkCorepass from "remark-corepass"; +import remarkCorebc from "remark-corebc"; + const config: Config = { title: process.env.title || 'CIP', tagline: process.env.tagline || 'Core Improvement Proposals', @@ -89,6 +94,12 @@ const config: Config = { }); }, }, + remarkPlugins: [ + [remarkAbbr, { expandFirst: true }], + fediverseUser, + remarkCorepass, + remarkCorebc, + ], }, theme: { customCss: './src/css/custom.css', @@ -106,10 +117,42 @@ const config: Config = { { property: 'og:description', content: 'Core Improvement Proposals' }, { property: 'og:type', content: 'website' }, { - "name": "keywords", - "content": "author, categories, champion, cip, cips, consensus, core, design, document, each, editor, editors, encompassing, features, flow, fork, github, have, improvement, improvements, information, intended, key, mechanisms, members, new, offers, platform, primary, proposal, proposing, protocol, rationale, require, responsibilities, serve, sets, six, specifications, stakeholders, standards, stands, team, we, what, work, you", + name: "keywords", + content: "author, categories, champion, cip, cips, consensus, core, design, document, each, editor, editors, encompassing, features, flow, fork, github, have, improvement, improvements, information, intended, key, mechanisms, members, new, offers, platform, primary, proposal, proposing, protocol, rationale, require, responsibilities, serve, sets, six, specifications, stakeholders, standards, stands, team, we, what, work, you", }, { property: 'ican:xcb', content: 'cb57bbbb54cdf60fa666fd741be78f794d4608d67109' }, + { name: "theme-color", content: "#3b9a3e"}, + { name: "apple-mobile-web-app-capable", content: "yes"}, + { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent"}, + ], + headTags: [ + { + tagName: "link", + attributes: { + rel: "manifest", + href: "/manifest.json", + }, + }, + { + tagName: "meta", + attributes: { + name: "generator", + content: "CoreWeb Generator", + }, + }, + { + tagName: 'script', + attributes: { + type: 'application/ld+json', + }, + innerHTML: JSON.stringify({ + '@context': 'https://schema.org/', + '@type': 'Organization', + name: 'CORE FOUNDATION', + url: 'https://coreblockchain.net', + logo: 'https://cip.coreblockchain.net/img/logo.svg', + }), + }, ], colorMode: { defaultMode: 'light', diff --git a/package.json b/package.json index 77f40a2..c225ff7 100644 --- a/package.json +++ b/package.json @@ -15,20 +15,24 @@ "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "3.0.0", - "@docusaurus/preset-classic": "3.0.0", - "@mdx-js/react": "^3.0.0", - "clsx": "^2.0.0", + "@docusaurus/core": "3.1.1", + "@docusaurus/preset-classic": "3.1.1", + "@mdx-js/react": "^3.0.1", + "clsx": "^2.1.0", "cryptocons": "^1.3.3", - "prism-react-renderer": "^2.1.0", + "prism-react-renderer": "^2.3.1", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "remark-abbr": "^1.4.1", + "remark-corebc": "^0.1.1", + "remark-corepass": "^0.1.3", + "remark-fediverse-user": "^0.1.8" }, "devDependencies": { - "@docusaurus/module-type-aliases": "^3.0.0", - "@docusaurus/tsconfig": "^3.0.0", - "@docusaurus/types": "^3.0.0", - "typescript": "^5.2.2" + "@docusaurus/module-type-aliases": "^3.1.1", + "@docusaurus/tsconfig": "^3.1.1", + "@docusaurus/types": "^3.1.1", + "typescript": "^5.3.3" }, "browserslist": { "production": [ diff --git a/src/theme/BlogPostItem/Header/Author/index.tsx b/src/theme/BlogPostItem/Header/Author/index.tsx index 885342e..ba960b8 100644 --- a/src/theme/BlogPostItem/Header/Author/index.tsx +++ b/src/theme/BlogPostItem/Header/Author/index.tsx @@ -31,7 +31,7 @@ export default function BlogPostItemHeaderAuthor({author, className}) { if (corepassMatchInside) { link = `corepass:${corepassMatchInside[1]}`; const shortened = corepassMatchInside[1].slice(0, 4) + '…' + corepassMatchInside[1].slice(-4); - displayName = name.replace(corepassPatternInside, `<${shortened}@cp>`); + displayName = name.replace(corepassPatternInside, `[${shortened}@coreid]`); } else if (websiteMatch) { link = websiteMatch[1]; if (!link.includes(':')) { diff --git a/static/img/icons/icon-128.png b/static/img/icons/icon-128.png new file mode 100755 index 0000000000000000000000000000000000000000..f4d85f2d540bbad577eefece35a97b4299b2ee9d GIT binary patch literal 3706 zcmV-=4u$cFP)l7t2$gjUv73_Jaf*Rc@tM)e7MM;>oqK3j2LmsIuFU(D|u6(b<|y1J^ms=5kcM478rO4c3EAV7)!dWU|M zoP!b~6#3uz4xa$J^5xwe4$>C2jzH|rzpp{g z$c+H-q908*E40g>(gUB-+2KP|N5C2yvzZrRh+Y8Zs=v|>Z#|(!e-`PY_oD6q*9yjx zX4tJmq(mzKzkFDDX8dkvo1Sk-D{P>#YcUE!R07~_`*ia;Sa^}M-QE{53PLmj@Mw48 zxog4dC@%a(ViJVR1%Pe5b***C(38)K7z80R0hp`KQD6qwN5RGqNu7?8Z$2(mUqc3D zA^<;f!31Eu>-&eJixhHR4xtUy1)v?aT_Gp$ z1&m2UeFAW4XL08M6j2obR{7TA7JWDaV+KRnBosgiisbR4SLxS3V9el8pxBw*1p3CG+`vY)ryE*kxQV0wPGFx3( z885ynGl!GM`|MbQ5MmmD7oXJrDntqLj;RB>Iy(O`nO6AUxz7N&#|DDi zMC-OS7yT;QA?zi z8oL4+LqhO!&}`zs0x-KX|1IR=qc6C0YrBiP8xRRz2qv5RF*uCIQYLW#O*qgokQV<{ zxWy-@&bqZ*&8hn_Ek08t4P=a6YM(MP#Tr~^tqdtiEdX4s87i^ESuuLR_xB#}uEu%+ zqn)vP1KHzK?U0gGCLl@fm@oQHA31o=t$qBp8p+Y}dfKMoTMVJ^wEjRU4UlB^bl)WU z${2e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/img/icons/icon-256.png b/static/img/icons/icon-256.png new file mode 100755 index 0000000000000000000000000000000000000000..468111d973db2d8460bd445df743edf1694fd2e7 GIT binary patch literal 7571 zcmXY0c{J4D8~)6gVa!;@7Ez2XyOD@&Gen`XWZ#u7DZ6Z8?0c4oWUWM&?AaM)$u3J0 zW6KuV*TKxs_nhA!_q^}D_dV}D_nv$1``qV=*3r643ulJ|06?puuKExFKo>3ufKgr; zbN52~3q$RyZsGv|2&VrU2*}7}`!B@f;awHr%ixu@iw?v=`GGP3R3sqI9zg-%s-T9d zvc3=KUzUZb-uH=aBZEZM(}h1*l?(2oUg3R4dLlU=K^9=c428TpcTsUzg|F1BP&deO z+}t;Y%uEgrp3espMOja9klhOJO2dB#{+#TPq`)3avgxcHHaet+XxMp4&hCi9aM=3t zND3`}Yd)4zBueKdW$*r7Vg}jeWViM4RF}26a#^lBH8mOR3=^`an8XTw!7Djd!h!e_FF} z-()v`luAd?cDO=#$3ZK5t|&7L4yr70_TAl~FXxr_`R|GM=Et4Mu#nq(q%PVgMUfIg z`oMCJ>ACWFaHEq%=C*;3_zy{I_O7Xb1G?oc?}hv$inL z$LO)&AuKqW)tvpgxzFqY!i5fr48nkr^7ZrC&e5ynd0wxr8~M5JRFZ4 z+g`jKZY?VeP&|p_!U#iFbU}dhnfc>^Snc(iv_ubgG|((ZGK+F2YSl;RD4jK#{0_}b zHUq)jlrm~fyNwhcIJwCuJW}3-U}pmC_-@f4-1&jOn<6&Dm2^2*loXy}>3YI}{Rt<< zqX;rHvmH%b@J|`-ShUUTbGBw+^>bN2cAtQ)2Im&EB(pQDP`+oz4L5G}%aiBff|_#G zFZ1UtpQVBkNp56Uo1eE%S;mf2J@alat)EZ%>2umiapD@zdYf_~^CNf8FRNmi!ASE! zsqTzby=8S~?%-pj^?}v8S=*A)qR}!U9MbK?HBp3O8v&P_&ic?neG0Ay^oA75I=$-f z5M)l`#!h~(o%YS&Bf>et-oQJlvFe9nIh>*PCoJ~EZx-GabP6OlP^nS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 zbJd@c{hB##);?**-)0+Cc7C#_3bh99e_|*mb=>vUMn&ASVj$SCva^p4aj^iDVfMUE z#iX%4La<5niSYinxd$D%(*?!%5!t)3YET^aA8uxRDaz-%gsWMRU}6QY^fK^rN1ABA zRx&oml+7v(sGxMW@8}1InCzgZwyewBZ?oP1?Jxe%dKETHV_k*#dSd2KpWije#e##u zI72<`wjLT?nT(-+Z%tC>QMNi#(LKCls-@H-2fA#&&q+EBaq~}8d^yN*B7^v{)bJ@D jIx1}Z(~#BjCYfIUwDV53?wyYp8Y-ZnrltBt#X97F)1FAf literal 0 HcmV?d00001 diff --git a/static/img/icons/icon-32.png b/static/img/icons/icon-32.png new file mode 100755 index 0000000000000000000000000000000000000000..30e31d723cc6e46829168ab3f6d61c6c8decad67 GIT binary patch literal 1004 zcmVa6GR#Vp-o8FyR-Dj zI<_Wp_QfaxrFfcg&Okx~fU*z^Y!HBjLSFPMeS59sy2<^1^^9C-#aC>Az}8KrdjXpm zpicceJ?pTG3$Pv7LQv7NZ4)O8gg_SfQ0tonRaL_%Cl1sYMtzlp>8JVlp zt2V)uD<%V^3?!p2Re-PT^Sm-}$4Q+h1;TssxnH~y0k=ITY763FVyYU>sgB1n1XQ1< zoCiS=B%N-l8!*6?80+L(5r@z}rVijIIQI0BFtDC&*b|heAif2Gax*0~A3iJK{~{+; zt@;N|l9J#j#DzgtC7?-EdBFA$>UjB(kYqtjprCeO%v~iqJ;waONl1782`NS0Kc=#p zBwRuiq?y1lfk#1MdQc%SFcleu0hm%7>x@92yE*K){Nu`_oN%>(JhyG)kCU5P{pQdK_rmBd7D!Z`uPUVW{*%u;m zoK)MKkf2;R49f{Wl*iPi#WZ_wRL*6;^OSBa{a!$4D_gy$%jG789~_vt&O9c^UWZfe z)!5ZDb<=&|_4V*~1ae-Q;SE(r22<7BM3 a&-1^&FT@*F#!AKj00006%mGj?8i9TOy@v?= z6G8&G6G&mZ-0ne2Af!O4^|ru5pR%y|Ct(vTj?k5ajWr>=iz<^?0c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x7ifdH^B3J?r?Vgi<^xYB_xQHhZ49Y~uov|%!ZO4X zKmgVTgLq)>?HwWt*0g@tPcXKZNB|6*i_f5mIo!QFLHLY6niY= 42: + new_tag = 'final' + elif diff.days >= 28: + new_tag = 'accepted' + elif diff.days >= 14: + new_tag = 'last call' + + if new_tag: + tags = post.get('tags', []) + if new_tag not in tags: + tags = [tag for tag in tags if tag not in ['draft', 'last call', 'accepted', 'final']] + tags.append(new_tag) + post['tags'] = tags + return True + return False + +def process_markdown_files(): + for subdir, dirs, files in os.walk('cip'): + for file in files: + if file.endswith('.md') or file.endswith('.mdx'): + filepath = os.path.join(subdir, file) + with open(filepath, 'r', encoding='utf-8') as f: + post = frontmatter.load(f) + if update_tags(post, datetime.now()): + with open(filepath, 'w', encoding='utf-8') as f: + frontmatter.dump(post, f) + +if __name__ == "__main__": + process_markdown_files() From 1b9438165cde16d9c8329c65780a6baf616047b1 Mon Sep 17 00:00:00 2001 From: Rastislav Date: Mon, 26 Feb 2024 20:43:10 +0100 Subject: [PATCH 2/2] Excluded broken plugin --- docusaurus.config.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index d15b902..aa14daf 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -2,7 +2,6 @@ import {themes as prismThemes} from 'prism-react-renderer'; import type {Config} from '@docusaurus/types'; import type * as Preset from '@docusaurus/preset-classic'; -import remarkAbbr from 'remark-abbr'; import fediverseUser from "remark-fediverse-user"; import remarkCorepass from "remark-corepass"; import remarkCorebc from "remark-corebc"; @@ -95,7 +94,6 @@ const config: Config = { }, }, remarkPlugins: [ - [remarkAbbr, { expandFirst: true }], fediverseUser, remarkCorepass, remarkCorebc,