Skip to content

Commit

Permalink
Fix content collections
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 9, 2024
1 parent dff2bea commit fe14d72
Show file tree
Hide file tree
Showing 71 changed files with 40 additions and 40 deletions.
Binary file modified bun.lockb
Binary file not shown.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,27 @@
"@iconify-json/uiw": "^1.2.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "5.0.1",
"astro-icon": "1.1.2",
"astro-purgecss": "4.8.0",
"astro": "5.0.4",
"astro-icon": "1.1.4",
"astro-purgecss": "5.0.0",
"autoprefixer": "^10.4.20",
"date-fns": "^4.1.0",
"mermaid": "11.4.0",
"postcss-nested": "^7.0.2",
"purgecss": "^6.0.0",
"purgecss": "^7.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sharp": "^0.33.5",
"styled-components": "^6.1.13"
},
"devDependencies": {
"@mermaid-js/mermaid-cli": "11.4.0",
"prettier": "3.3.3",
"prettier": "3.4.2",
"prettier-plugin-astro": "0.14.1",
"vite-plugin-fable": "^0.0.31"
"vite-plugin-fable": "^0.0.32"
},
"trustedDependencies": [
"astro",
"sharp",
"vite-plugin-fable"
]
Expand Down
4 changes: 2 additions & 2 deletions src/content/blog/BobKonf2024.md → src/blog/BobKonf2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: BOBKonf 2024
date: 2024-03-16
author: "dawe"
slug: "2024/03/16"
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

[BOBKonf](https://bobkonf.de/2024/en/) is a yearly conference in Berlin, Germany. It's target audience is more on the functional programming side of things, but it's not limited to that.
Expand All @@ -21,4 +21,4 @@ We had a long conversation with [Sabine](https://twitter.com/sabine_s_) and [Lea

A spectial thank-you goes out to all contributors to our [collective](https://opencollective.com/amplifying-fsharp). Your money helped to make this trip possible. A big thank-you for the BOBKonf organizers is also in order. We decided to be regulars at this conference from now on.

![The Amplifying F# team and friends.](../../images/blog/bobkonf2024.jpg)
![The Amplifying F# team and friends.](../images/blog/bobkonf2024.jpg)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Data Science in F#
date: 2023-09-30
author: "dawe"
slug: "2023/09/30"
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

The Europe-based part of us made the trip to Berlin to attend the [Data Science in F#](https://datascienceinfsharp.com/) conference.
Expand All @@ -18,4 +18,4 @@ A great buddy and a great F# developer known for his work on [FsHttp](https://gi

Fueled by coffee and ice cream, many ideas to take the next steps in our initiative and to lift Amplifying F# to the next level came up during the conference.
Stay tuned for more news in the coming weeks.
![The Amplifying F# team and friends.](../../images/blog/datascience2023.jpg)
![The Amplifying F# team and friends.](../images/blog/datascience2023.jpg)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Documentation's Fresh Coat of Paint
date: 2024-02-14
author: "Florian"
slug: "2024/02/14"
profilePicture: "../../images/authors/FlorianVerdonck.jpg"
profilePicture: "../images/authors/FlorianVerdonck.jpg"
---

Stumbling upon new software can either be a moment of revelation or a cool find. Whether it's a solution to a lingering issue or just something that catches your eye, a positive initial impression sparks an urge to dive deeper. The immediate follow-up question usually is, _"Alright, how do I get this thing to work?"_ And that's when you cross your fingers, hoping for a treasure trove of documentation.
Expand All @@ -16,11 +16,11 @@ The conversation in [issue #849](https://github.com/fsprojects/FSharp.Formatting

Before:

![Old FSharp.Formatting](../../images/blog/old-fsdocs.png)
![Old FSharp.Formatting](../images/blog/old-fsdocs.png)

After:

![New FSharp.Formatting](../../images/blog/new-fsdocs.png)
![New FSharp.Formatting](../images/blog/new-fsdocs.png)

### Embracing Modern Web Standards

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ title: H-ing gracefully
date: 2023-12-25
author: "dawe"
slug: "2023/12/25"
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

For various reaons I have been looking into other FP languages and communities recently.
One of the languages was [Elixir](https://elixir-lang.org/), which is a functional language on top of the [BEAM VM](<https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)>). A piece of technology that has me in total awe.
As shown in one of our previous [sessions](https://www.youtube.com/live/8aBmGUNFBQI?si=JD-exm6rO_J38mG_&t=893), I noticed that the Elixir REPL (iex) has a very nice feature, the `h` function.
Want to know more about a function? For example, `Enum.map`? Just type `h` followed by the function name and you get a nicely formatted help text:

![iex](../../images/blog/iex.png)
![iex](../images/blog/iex.png)

That's a really cool feature, especially for beginners. You can stay in the REPL and get help on the fly. No need to switch to a browser and search for the function. No context switch for your brain. No interruption of your flow.

Expand All @@ -28,7 +28,7 @@ But how do we identify the assembly containing the function we are interested in
For this, I settled with [Quotations](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/code-quotations). There are active patterns available in FSharp.Core that let us extract the information we need from a quotation.
Using quotations, some more doors suddenly open to us. More on that later. So with the path to the dll in hand, we can load the XML documentation file next to it, parse it and extract the information we need:

![fsi_h_seq_map](../../images/blog/fsi_h_seq_map.png)
![fsi_h_seq_map](../images/blog/fsi_h_seq_map.png)

As you see, `h` gives you direct access to

Expand Down
12 changes: 6 additions & 6 deletions src/content/blog/PortingFsih.md → src/blog/PortingFsih.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Porting fsih to fsi
date: 2024-06-16
author: "dawe"
slug: "2024/06/16"
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

Some of you might remember our [Unlocking F# Potential](https://amplifyingfsharp.io/sessions/2023/11/24/) session from last November when I showed the first prototype of [fsih](https://github.com/dawedawe/fsih). A small package modelled after the `h` function of the Elixir [IEx](https://hexdocs.pm/iex/1.16.0/IEx.html) REPL to have documentation availabe at your finger tips without the need to context switch to a browser.
Expand All @@ -19,21 +19,21 @@ I liked the idea and made the necessary changes to the PR. In parallel, Kevin st
For the time being, quotation marks are still needed while Kevins parser PR is not yet merged. But I'm confident that will happen soon.

So where does this leave us? In the future, when you invoke the `#help` directive in fsi, you will see a new entry `#help "idn"`:
![fsi #help output](../../images/blog/fsi_hashhelplist_screenshot.png)
![fsi #help output](../images/blog/fsi_hashhelplist_screenshot.png)

And just as the screenshot suggests, you can use it like this:
![fsi #help List.map output](../../images/blog/fsi_hashhelplistmap_screenshot.png)
![fsi #help List.map output](../images/blog/fsi_hashhelplistmap_screenshot.png)

Et voilà, the functionality you know from the fsih package in fsi without any additional dependencies. To keep things simple and to avoid bloating F#, the dependency of fsih on `Spectre.Console` was not ported over. The output is just uncolored plain text. A follow up PR might add some coloring with the built-in coloring capabilities.

It's possible to run into a type constraint issues when using the functionality with functions like `List.sum`:
![fsi #help List.sum output](../../images/blog/fsi_hashhelplistsum_screenshot1.png)
![fsi #help List.sum output](../images/blog/fsi_hashhelplistsum_screenshot1.png)

You will see something similar when you just type `List.sum` to get the signature of the function:
![fsi List.sum output](../../images/blog/fsi_listsum_screenshot.png)
![fsi List.sum output](../images/blog/fsi_listsum_screenshot.png)

You can still get the documentation by lending F# a helping hand to infer the type:
![fsi #help List.sum output](../../images/blog/fsi_hashhelplistsum_screenshot2.png)
![fsi #help List.sum output](../images/blog/fsi_hashhelplistsum_screenshot2.png)

All in all, I'm quite happy with the result of the porting effort. It would not have been possible without the genorous supporters of the [Amplifying F# Open Collective](https://opencollective.com/amplifying-fsharp). So once again, I want to express my gratitude to all of you and to all reviewers of the PR.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Seamless switching between Package and Project references
date: 2023-11-11
author: "dawe"
slug: "2023/11/11"
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

While doing open source development on a code base with package dependencies which are crucial to your work, you easily run into a situation where you want to adjust the package code to your needs. Reasons could be a missing feature, a bug, or just a different opinion on how things should be done.
Expand Down
6 changes: 3 additions & 3 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { glob } from "astro/loaders";

// 2. Define your collection(s)
const testimonialCollection = defineCollection({
loader: glob({ pattern: "[^_]*.md", base: "./src/content/testimonials" }),
loader: glob({ pattern: "*.md", base: "./src/testimonials" }),
schema: ({ image }) =>
z.object({
title: z.string(),
Expand All @@ -16,7 +16,7 @@ const testimonialCollection = defineCollection({
});

const sessionCollection = defineCollection({
loader: glob({ pattern: "**/[^_]*.md", base: "./src/content/sessions" }),
loader: glob({ pattern: "*.md", base: "./src/sessions" }),
schema: ({ image }) => {
return z.object({
title: z.string(),
Expand All @@ -36,7 +36,7 @@ const sessionCollection = defineCollection({
});

const blogCollection = defineCollection({
loader: glob({ pattern: "**/[^_]*.md", base: "./src/content/blog" }),
loader: glob({ pattern: "*.md", base: "./src/blog" }),
schema: ({ image }) => {
return z.object({
title: z.string(),
Expand Down
1 change: 0 additions & 1 deletion src/pages/testimonials/[...id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export async function getStaticPaths() {
const { entry, prevLink, nextLink, color } = Astro.props;
const { Content } = await render(entry);
console.log(entry);
const { title, author, profilePicture } = entry.data;
const pageTitle = `Testimonial of ${title}`;
const mainTitle = pageTitle;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ zoomPasscode: "740197"

I frequently work with named fields in discriminated unions when I'm pattern matching.
An example use case:
![No intellisense when using named fields in discriminated unions](../../images/sessions/namedPatternIntellisense.gif)
![No intellisense when using named fields in discriminated unions](../images/sessions/namedPatternIntellisense.gif)

Notice I didn't have any proper autocomplete for the names inside my current discrimination union.
I had to look them up in the [documentation](https://fsharp.github.io/fsharp-compiler-docs/reference/fsharp-compiler-syntax-synexpr.html#ObjExpr), which isn't the best editing experience.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The frontend is built using [Fable](https://fable.io/) &amp; [React](https://rea
These Lambda functions are an interesting way to keep the cost low, but they can take a while to start up.
Therefore, the maintainers recommend running the tools locally to speed up the user experience.

![Fantomas Tools Welcome message](../../images/sessions/fantomas-tool.png)
![Fantomas Tools Welcome message](../images/sessions/fantomas-tool.png)

The usual approach to frontend development is to install Node.js and bring a complex toolchain which sometimes requires you to understand how Node.js works and its ecosystem which can be a lengthy task.

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date: 2023-04-27
slug: "2023/04/27"
champion: Florian Verdonck
company: GR-OSS
thumbnail: "../../images/sessions/nrk-workshop-thumbnail.jpg"
thumbnail: "../images/sessions/nrk-workshop-thumbnail.jpg"
---

## Premise
Expand All @@ -25,5 +25,5 @@ After some theory, we got our hands dirty and started contributing to the variou

- [Florian Verdonck](https://twitter.com/verdonckflorian)

![](../../images/sessions/nrk-workshop-1.jpg)
![](../../images/sessions/nrk-workshop-2.jpg)
![](../images/sessions/nrk-workshop-1.jpg)
![](../images/sessions/nrk-workshop-2.jpg)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: "2023/05/17"
champion: Edgar Gonzalez
company: FundOurselves
repository: https://github.com/fsharp/fslang-suggestions/issues/1091
thumbnail: "../../images/sessions/london-meetup-thumbnail.jpg"
thumbnail: "../images/sessions/london-meetup-thumbnail.jpg"
---

## Topic
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ youtubeId: ""
issueLink: https://nuudel.digitalcourage.de/61J5dKQVqRCnhPfI
zoomLink: "https://nuudel.digitalcourage.de/61J5dKQVqRCnhPfI"
zoomPasscode: ""
thumbnail: "../../images/sessions/bingen-thumbnail.jpg"
thumbnail: "../images/sessions/bingen-thumbnail.jpg"
---

## Topic
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Improve compiler error inside CE for missed match case

Currently the following error reported in multiple scenarios inside CE:

![match expressions missing inside task ce confusing error](../../images/sessions/ce-error-reporting.png)
![match expressions missing inside task ce confusing error](../images/sessions/ce-error-reporting.png)

In this specific case the reason is just the missing `_` in: `| _ ->`, which is misleading is this scenario.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ youtubeId: "U4fZ8nASokc"

Currently it's next to impossible to see what custom operations are available:

![Currently it's next to impossible to see what custom operations are available](../../images/sessions/ceCustomOperationCompletion.png)
![Currently it's next to impossible to see what custom operations are available](../images/sessions/ceCustomOperationCompletion.png)

The goal of the session is to improve the situation by putting custom operations at the top of the completion list if it's invoked inside computation expression.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ youtubeId: "lHj8YSu_04A"

## Topic

![F# 8 Contributors](../../images/sessions/fsharp8-contributors.png)
![F# 8 Contributors](../images/sessions/fsharp8-contributors.png)

In this session we will review the changes that we were part and which are desribed in the [Announcing F# 8](https://devblogs.microsoft.com/dotnet/announcing-fsharp-8/) blog post.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: David Schaefer
preview: Each one, teach one
author: David Schaefer
isDraft: true
profilePicture: "../../images/authors/DavidSchaefer.jpg"
profilePicture: "../images/authors/DavidSchaefer.jpg"
---

## Each one, teach one
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Edgar Gonzalez
preview: I went from zero to hero in no time
author: Edgar Gonzalez
isDraft: true
profilePicture: "../../images/authors/EdgarGonzalez.jpg"
profilePicture: "../images/authors/EdgarGonzalez.jpg"
---

## My journey from a soldier to an F# OSS contributor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Florian Verdonck
preview: Open-source heavily influenced my career
author: Florian Verdonck
isDraft: true
profilePicture: "../../images/authors/FlorianVerdonck.jpg"
profilePicture: "../images/authors/FlorianVerdonck.jpg"
---

## This crazy little thing called Fantomas
Expand Down

0 comments on commit fe14d72

Please sign in to comment.