From ccb723f9979fef3f32e4d581bb738621db413e6c Mon Sep 17 00:00:00 2001 From: Adam Skrzymowski <35405850+adamskrz@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:16:54 +0000 Subject: [PATCH] Add readme info on admonitions --- README.md | 144 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 101 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index b67e498..b0c5d78 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,16 @@ # Warwick Tech Crew Website + > This is the public website for Warwick Tech Crew, written using [Docusaurus](https://docusaurus.io). ## Contributing to the Wiki -The [wiki](https://warwicktechcrew.co.uk/wiki) is a collection of information that may be useful to Tech Crew -members and is open for everyone to see and contribute to. Docs are written using Markdown (a simple text format -similar to that used in Discord and Whatsapp), and are stored in the `/wiki` directory. + +The [wiki](https://warwicktechcrew.co.uk/wiki) is a collection of information that may be useful to Tech Crew members +and is open for everyone to see and contribute to. Docs are written using Markdown (a simple text format similar to that +used in Discord and Whatsapp), and are stored in the `/wiki` directory. To contribute, you will need to a GitHub account. You can then edit the files directly on GitHub or clone the repository -using the instructions below. Alternatively, contact someone familiar with the website (such -as Josh Heng to make the changes for you). +using the instructions below. Alternatively, contact someone familiar with the website (such as Josh Heng to make the +changes for you). You can find more information about formatting [here](https://docusaurus.io/docs/markdown-features). @@ -16,7 +18,9 @@ You can also find more information about contributing on the [Contributing Guide](https://warwicktechcrew.co.uk/wiki/resources/contributing). ### Front Matter + Each doc file should have front matter at the top of the page that defines its description and emoji (e.g. for embeds): + ```yaml description: [Description of the page] sidebar_custom_props: @@ -24,11 +28,13 @@ sidebar_custom_props: ``` ### Wiki Authors + By default, the site will show the name of all the contributors for each page. This is determined from the name you use on GitHub/the name you have configured in Git. These names can be overridden in the file `src/lib/author-names.ts`. It is also possible to add additional contributors or override all the contributors for a wiki page by adding the following front matter to the top of each doc file: + ```yaml --- additional_authors: @@ -37,7 +43,9 @@ override_authors: ``` ### Resources + You can add resources with the following frontmatter: + ```yaml --- resources: @@ -48,7 +56,9 @@ resources: ``` ### Shortlinks + Shortlinks can be added to provide a shorter link to the wiki page. The first shortlink will be shown in the sidebar: + ```yaml shortlinks: - mainShortlink @@ -56,6 +66,7 @@ shortlinks: ``` Section shortlinks can also be used to direct the user to a specific heading (e.g. `#section-heading`): + ```yaml sectionShortlinks: - shortlink: heading @@ -63,12 +74,15 @@ sectionShortlinks: ``` ### Images + Images can be added in the following Markdown format: + ```md ![Alt Text](file-name.txt) ``` These can be made into a gallery format (i.e. showing them side by side) by wrapping them in a `img-gallery` class div: + ```md