Skip to content

Commit

Permalink
Use a better link to swift evolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
kkostov committed Feb 4, 2024
1 parent 15c7e35 commit 4336076
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flags.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
types: [],
versions: [],
descriptions: [],
docsUrl: `https://github.com/search?q=repo%3Aapple%2Fswift-evolution%20${key}&type=code`,
docsUrl: `https://www.swift.org/swift-evolution/#?search=${key}`,
};
}
if (!acc[key].versions.includes(obj.version)) {
Expand Down
13 changes: 8 additions & 5 deletions language-features/[version].md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ A compiler flag is available to enable specific features `-enable-upcoming-featu
```

<div v-for="flag of upcomingFeatures">
<a :href="flag.docsUrl" target="_bank"><h3>{{ flag.name }}</h3></a>
</div>
<h3>{{ flag.name }}</h3>
<a :href="flag.docsUrl" target="_bank">🔍 Mentions in proposals</a>
</div>

## Experimental

Expand All @@ -58,12 +59,14 @@ A compiler flag is available to enable specific features `-enable-experimental-f
```

<div v-for="flag of experimentalFeatures">
<a :href="flag.docsUrl" target="_bank"><h3>{{ flag.name }}</h3></a>
</div>
<h3>{{ flag.name }}</h3>
<a :href="flag.docsUrl" target="_bank">🔍 Mentions in proposals</a>
</div>

## Stable

<div v-for="flag of languageFeatures">
<a :href="flag.docsUrl" target="_bank"><h3>{{ flag.name }}</h3></a>
<h3>{{ flag.name }}</h3>
<a :href="flag.docsUrl" target="_bank">🔍 Mentions in proposals</a>
<p>{{ flag.descriptions.filter(d => d.v === neededVersion)[0]?.value }}</p>
</div>

0 comments on commit 4336076

Please sign in to comment.