Skip to content

Commit a7f4264

Browse files
committed
Minor fixes
1 parent 67c98fe commit a7f4264

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.github/workflows/publish-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- name: Build Website
1818
run: |
19-
git submodule update --init --recommend-shallow eng/submodules/silk.net-2.x
19+
git submodule update --init eng/submodules/silk.net-2.x
2020
./build.sh website
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

sources/Website/docusaurus.config.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ const config: Config = {
103103
// Remove this to remove the "edit this page" links.
104104
// editUrl:
105105
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
106+
editUrl: x => {
107+
// TODO basically change everything here once 3.0 is releasing
108+
if (x.version == "v2") {
109+
// TODO once v2 is no longer maintained, remove this.
110+
return `https://github.com/dotnet/Silk.NET/edit/main/documentation/${x.docPath}`
111+
}
112+
// TODO handle more than 3.0
113+
return `https://github.com/dotnet/Silk.NET/edit/develop/${x.version[1]}.0/docs/${x.docPath}`;
114+
},
106115
exclude: ["README.md"],
107116
beforeDefaultRemarkPlugins: [
108117
remarkGithubAdmonitionsToDirectives,
@@ -132,7 +141,7 @@ const config: Config = {
132141
],
133142
themeConfig: {
134143
// Replace with your project's social card
135-
image: 'img/docusaurus-social-card.jpg',
144+
image: 'img/wallpaper.png',
136145
navbar: {
137146
// title: 'My Site',
138147
logo: {
@@ -155,7 +164,7 @@ const config: Config = {
155164
docsPluginId: "default"
156165
},
157166
{
158-
href: 'https://github.com/facebook/docusaurus',
167+
href: 'https://github.com/dotnet/Silk.NET',
159168
label: 'GitHub',
160169
position: 'right',
161170
},
Binary file not shown.
-5.02 KB
Binary file not shown.
425 KB
Loading

0 commit comments

Comments
 (0)