Skip to content

Commit e3ba886

Browse files
authored
Merge pull request #21944 from LasseRosenow/guides-use-symlink-again
doc/starlight: remove copy folder hacks
2 parents 876aaa3 + 46131f8 commit e3ba886

File tree

6 files changed

+285
-272
lines changed

6 files changed

+285
-272
lines changed

doc/starlight/Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ install: integrate_outside_files
1010

1111
.PHONY: build
1212
build: install
13-
@echo "Copying RIOT documentation source files..."
14-
@echo "See: https://github.com/withastro/starlight/issues/3470"
15-
@mkdir -p $(CURDIR)/src/content/docs
16-
@rm -rf $(CURDIR)/src/content/docs
17-
@cp -r $(RIOTBASE)/doc/guides $(CURDIR)/src/content/docs
1813
@npm run build --prefix $(CURDIR)
1914
@echo "RIOT documentation successfully generated at file://$(RIOTBASE)/doc/starlight/dist/index.html"
2015

@@ -24,10 +19,6 @@ preview: build
2419

2520
.PHONY: dev
2621
dev: install
27-
@echo "Linking RIOT documentation source files..."
28-
@mkdir -p $(CURDIR)/src/content/docs
29-
@rm -rf $(CURDIR)/src/content/docs
30-
@ln -s ../../../guides $(CURDIR)/src/content/docs
3122
@echo "Starting starlight live server..."
3223
@npm run dev --prefix $(CURDIR)
3324

doc/starlight/astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default defineConfig({
1313
integrations: [
1414
starlight({
1515
title: "RIOT Documentation",
16+
markdown: {
17+
processedDirs: ["../guides"],
18+
},
1619
head: [
1720
{
1821
tag: "link",
@@ -185,7 +188,6 @@ export default defineConfig({
185188
replacesTitle: true,
186189
},
187190
plugins: [starlightImageZoom()],
188-
routeMiddleware: "./src/routeData.ts",
189191
editLink: {
190192
baseUrl: "https://github.com/RIOT-OS/RIOT/tree/master/doc/guides",
191193
},

0 commit comments

Comments
 (0)