You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,21 +70,22 @@ The project should be available at http://localhost:5173/.
70
70
71
71
## Adding content to the site
72
72
73
-
Static pages are added to the site via [markdown files](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax). Markdown support is implemented in the
74
-
project using [mdsvex](https://mdsvex.pngwn.io/). Pages are added to the site by
75
-
adding a new entry to the [frontend/src/routes/](frontend/src/routes/) directory.
73
+
Static pages are added to the site via [markdown files](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).
74
+
Markdown support is implemented in the project using [mdsvex](https://mdsvex.pngwn.io/).
76
75
77
-
First, create a new sub-directory in the routes directory. For example, to add
78
-
a new page called "about", create a new directory called `about` and add
79
-
a `+page.md` file to it.
76
+
Pages are added to the site by adding a new markdown file to the [frontend/src/pages/](frontend/src/pages/)
77
+
directory. Nested pages are supported by creating a new directory and adding a child markdown file to it.
80
78
81
-
The `+page.md` file should contain the markdown content for the page. The page
82
-
will be added to the site and will be accessible at `http://PROJECT_URL/about`.
79
+
The file should contain the markdown content for the page. The page will be added to the site and will be accessible at a URL that mirrors the file structure. For example:
New editorial content should be added in the `research` branch. This branch is
87
-
automatically deployed to the preview site in [GitHub Pages](https://kingsdigitallab.github.io/corpus-building/), together with the `develop` and `main` branches.
87
+
automatically deployed to the preview site in [GitHub Pages](https://kingsdigitallab.github.io/corpus-building/),
88
+
together with the `develop` and `main` branches.
88
89
89
90
Content that needs to be visible to the public should be added to the `main`
90
91
branch. Content to the `main` branch needs to be added via a pull request.
0 commit comments