- Notifications
You must be signed in to change notification settings - Fork0
systemetric/docs.robocon.uk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Hosted on the subdomainhttps://docs.robocon.uk
Built with the Starlight docs framework, on Astro.
If you've done Node stuff before and want to contribute, then jump down to theMore Advanced... section for the important nitty gritty details, otherwise read away... I've explained the editing process :)
If you find something wrong with the docs website, be it a spelling mistake, a broken link, or something that could be better,open an issue!
Head over to the issues tab, and hit add new issue. Then write your issue,include a screenshot where applicable and post it.
First, clone down this repo. Then make sure node is installed, if not, I recommend installingnvm (Node Version Manager) and then installing the latest version of node (nvm install node).
Now node's installed,cd into the cloned repo folder and runnpm install. This installs all the dependencies required. Now you're ready to edit!
Best code editor? VS Code!
Now you've installed the dependencies, run a local server by usingnpm run build. This hosts your copy of the site in your browser with live changes as you edit the files.
Pages are stored in/src/content/docs/ with the subfolder group matching the categories on the website. All the pages (except forindex.mdx which is similar to HTML) are written in Markdown. Simply edit, save and see your changes!
If you need to add images or assets, they're stored in/public/images/ or/public/assets/ for anything that's not images. Refer to them as you usually would. They'll appear publicly without the/public. E.g. the image/public/images/brainbox.jpg is accessable athttps://docs.robocon.uk/images/brainbox.jpg.
General site settings (e.g. headers and footers) are editable inastro.config.mjs and fonts intailwind.config.mjs.
If you want to do more, then you can refer to the docs linked below!
This site was built with Starlight, which is an extension of Astro. SeeStarlight docs. Starlight varies in functionality a fair bit from some parts of Astro, so alwaysread the Starlight docs first before checking the Astro ones.
Yes, we have Tailwind installed.
Fonts are installed via Fontsource (npm install @fontsource/roboto to add the Roboto font. Fontsource understands Google Fonts). Fonts must be defined in theastro.config.mjs file and used in thetailwind.config.mjs file. You must edit both when adding or removing a font.
Simply create an aptly named branch, commit your changes there, and open a Pull Request!
About
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.