From deca6d47e3683178b82ab9ef4f8f46e59a43b1bf Mon Sep 17 00:00:00 2001 From: Arpita-Jaiswal Date: Thu, 2 Nov 2023 16:35:34 +0530 Subject: [PATCH 1/2] Wip: adding monthly chorus for dependency updates --- d/m/dependency-data.ftd | 73 ++++++++++++++++++++++++++++++++++++++++ d/m/dependency-model.ftd | 26 ++++++++++++++ d/{m.ftd => m/index.ftd} | 9 ++++- 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 d/m/dependency-data.ftd create mode 100644 d/m/dependency-model.ftd rename d/{m.ftd => m/index.ftd} (64%) diff --git a/d/m/dependency-data.ftd b/d/m/dependency-data.ftd new file mode 100644 index 000000000..c0864194c --- /dev/null +++ b/d/m/dependency-data.ftd @@ -0,0 +1,73 @@ +-- import: fastn.com/d/m/dependency-model as dm + +-- dm.dependency-data list dependencies: + +-- dm.dependency-data: $marked + +-- end: dependencies + + + +-- dm.dependency-data marked: Marked.js +current-version: 9.1.4 +available-version: 9.1.5 +github-url: https://github.com/markedjs/marked/ +doc-url: https://marked.js.org/ +reference-url: https://cdnjs.com/libraries/marked +updates: $marked-updates + + +-- dm.update list marked-updates: + +-- dm.update: $arpita +updated-on: 31-10-2023 +version: 9.1.4 +version-release-date: 31-10-2023 +pr-link: https://github.com/fastn-stack/fastn/pull/1440 +version-link: https://github.com/markedjs/marked/releases/tag/v9.1.4 + +Using latest version marked 9.1.4, instead of 5.1.1. + +**Known Problems:** +The problem with this version is that the heading gets converted into +appropriate heading tag but it doesn't contain the id attribute. Consider the +code below + +`# Heading 1` + +The above code gets converted into the following html +`

Heading 1

` + +Instead of +`

Heading 1

` + +Checkout the [github issue](https://github.com/markedjs/marked/issues/3067) +raised in the marked. + +**Solution:** + +Since we never encourage `fastn` users to ever use markdown headings but to use +heading components provided by typography or doc site packages. This takes care +of the problem above. + +So we can go ahead with this PR. + + +-- end: marked-updates + + + + + + + + + + + + +-- dm.person arpita: Arpita +github-url: https://github.com/Arpita-Jaiswal +linkedin: https://www.linkedin.com/in/arpita-jaiswal-661a8b144/ + +I am creating `fastn`! diff --git a/d/m/dependency-model.ftd b/d/m/dependency-model.ftd new file mode 100644 index 000000000..be8a66724 --- /dev/null +++ b/d/m/dependency-model.ftd @@ -0,0 +1,26 @@ +-- record dependency-data: +caption name: +string current-version: +string available-version: +optional string github-url: +optional string doc-url: +optional string reference-url: +optional string other-url: +update list updates: + + +-- record update: +caption person updater: +string updated-on: +string version: +string version-release-date: +string pr-link: +optional string version-link: +optional body about: + + +-- record person: +caption name: +optional body description: +optional string github-url: +optional string linkedin: diff --git a/d/m.ftd b/d/m/index.ftd similarity index 64% rename from d/m.ftd rename to d/m/index.ftd index 2fcf45821..6579f2684 100644 --- a/d/m.ftd +++ b/d/m/index.ftd @@ -16,6 +16,13 @@ To create a release do the following: -- ds.h1: Monthly Cleanups -1. Run `cargo update`. +Monthly dependency updates are a must! We've set up a dedicated page to ensure +we stay on track with this practice. + +Currently we have following dependencies and tracks: + +1. Marked.js: Parse markdown to HTML +2. Prism.js: Code highlighter +3. `cargo update`: Updates all rust dependencies -- end: ds.page From 0d4a030852fb24b112fc370b6bc09c212186bbb9 Mon Sep 17 00:00:00 2001 From: Arpita-Jaiswal Date: Fri, 3 Nov 2023 10:24:20 +0530 Subject: [PATCH 2/2] Added user component --- d/m/components.ftd | 1 + d/m/dependency-data.ftd | 32 ++++++++++++++------------------ d/m/dependency-model.ftd | 14 ++++++-------- d/m/index.ftd | 2 +- u/arpita-jaiswal.ftd | 13 +++++++++++++ u/index.ftd | 7 ++++--- u/model.ftd | 8 ++++++++ 7 files changed, 47 insertions(+), 30 deletions(-) create mode 100644 d/m/components.ftd create mode 100644 u/model.ftd diff --git a/d/m/components.ftd b/d/m/components.ftd new file mode 100644 index 000000000..32b7f0cb1 --- /dev/null +++ b/d/m/components.ftd @@ -0,0 +1 @@ +-- import: fastn.com/d/m/dependency-model diff --git a/d/m/dependency-data.ftd b/d/m/dependency-data.ftd index c0864194c..7b61eb7f2 100644 --- a/d/m/dependency-data.ftd +++ b/d/m/dependency-data.ftd @@ -1,4 +1,7 @@ -- import: fastn.com/d/m/dependency-model as dm +-- import: fastn.com/u + + -- dm.dependency-data list dependencies: @@ -8,6 +11,10 @@ + + + + -- dm.dependency-data marked: Marked.js current-version: 9.1.4 available-version: 9.1.5 @@ -17,9 +24,15 @@ reference-url: https://cdnjs.com/libraries/marked updates: $marked-updates + + + + + + -- dm.update list marked-updates: --- dm.update: $arpita +-- dm.update: $u.arpita updated-on: 31-10-2023 version: 9.1.4 version-release-date: 31-10-2023 @@ -54,20 +67,3 @@ So we can go ahead with this PR. -- end: marked-updates - - - - - - - - - - - - --- dm.person arpita: Arpita -github-url: https://github.com/Arpita-Jaiswal -linkedin: https://www.linkedin.com/in/arpita-jaiswal-661a8b144/ - -I am creating `fastn`! diff --git a/d/m/dependency-model.ftd b/d/m/dependency-model.ftd index be8a66724..8a1382893 100644 --- a/d/m/dependency-model.ftd +++ b/d/m/dependency-model.ftd @@ -1,3 +1,6 @@ +-- import: fastn.com/u + + -- record dependency-data: caption name: string current-version: @@ -9,18 +12,13 @@ optional string other-url: update list updates: + + -- record update: -caption person updater: +caption u.user-data updater: string updated-on: string version: string version-release-date: string pr-link: optional string version-link: optional body about: - - --- record person: -caption name: -optional body description: -optional string github-url: -optional string linkedin: diff --git a/d/m/index.ftd b/d/m/index.ftd index 6579f2684..c079d1787 100644 --- a/d/m/index.ftd +++ b/d/m/index.ftd @@ -3,7 +3,7 @@ -- ds.h1: Version Policy Since we are a binary crate, and our library crates are only largely meant to be -used by our binary crate, we are targetting the latest Rust version. Whenever a +used by our binary crate, we are targeting the latest Rust version. Whenever a new version is released we always switch to it. -- ds.h1: Release Management diff --git a/u/arpita-jaiswal.ftd b/u/arpita-jaiswal.ftd index 087ea9a78..5906325e4 100644 --- a/u/arpita-jaiswal.ftd +++ b/u/arpita-jaiswal.ftd @@ -1,5 +1,18 @@ -- import: fastn-community.github.io/spectrum-ds/common -- import: fastn.com/featured as ft-ui +-- import: fastn.com/u/model + + +-- model.user-data arpita: Arpita Jaiswal +avatar: $fastn-assets.files.images.u.arpita.jpg +profile: Lead Engineer +github-url: https://github.com/Arpita-Jaiswal +linkedin: https://www.linkedin.com/in/arpita-jaiswal-661a8b144/ +discord: https://discord.gg/arpita_j + +I believe that we are trying to cater the need of world with `fastn` technology. + + -- ds.user-info: Arpita Jaiswal avatar: $fastn-assets.files.images.u.arpita.jpg diff --git a/u/index.ftd b/u/index.ftd index 0887bc9c8..cca38298f 100644 --- a/u/index.ftd +++ b/u/index.ftd @@ -1,6 +1,7 @@ -- import: fastn-community.github.io/spectrum-ds/common -- import: fastn.com/featured as ft-ui +-- import: fastn.com/u/arpita-jaiswal +export: arpita - - - +-- import: fastn.com/u/model +export: user-data diff --git a/u/model.ftd b/u/model.ftd new file mode 100644 index 000000000..6e4836f1c --- /dev/null +++ b/u/model.ftd @@ -0,0 +1,8 @@ +-- record user-data: +caption name: +optional ftd.image-src avatar: +optional string profile: +optional body description: +optional string github-url: +optional string linkedin: +optional string discord: