If you’ve used git before, just go ahead and fork the repository! Otherwise read the follwoing steps to learn how to do it.
All the files for articles are located in this folder, as is a copy of this guide. Go to here to get started.
Set up your workspace for adding your file is really easy, just press the ‘Create new file’ button. To edit an old file, just click on it.
There’s a few elements you need to add to your file.
Should be in the format yyyy-mm-dd_name.md. Make sure you write .md
at the end or it won’t work! The date controls the order of where it appears on the page.
ex: ## Intro to editing on GitHub
. Call it something short and catchy. Preface it with two hashes (##
)
ex: Usually write the date, the author, and where the event took place here. Plus a catchy subtitle if you can - think Cherwell or the Economist. Preface each one with three hashes (###
).
THe main content of your article! Copy and paste it in from a draft in Word if you so wish. I’d try and make this fairly succint - if you see how they get displayed on the website you’ll see that shorter is better. Maybe if we switch to whole-page articles in the future longer will be better.
See below for guidance on editing style.
You’re done! Now you need to just summarise what you’ve done for reference purposes. That’s in the first box at the bottom. Only needs to a short half-sentence, like Added a new article on uni1 match
or Fixed punctuation in FWS report
.
Propose New File
button circled in the above image.Create pull request
button on the next page.Both are highlighted green. You must click both.
At the top, right above your title, there should be a preview button. Will let you view your changes.
Copy and paste the template to get started easily.
So all these articles are written in markdown and automatically compiled to the website. Markdown is just a super easy way to format things, you’re probably already familiar with it from popular messaging sites such as Reddit, WhatsApp, or Discord. It’s just really basic things, like:
## Your Title
and then a ### Date - Your Name
subtitle.**bold**
text is written with two stars around it.*italic*
text is written with one star.Should be done in the format:
![](../images/{YOUR_ARTICLE_NAME}.jpg)
or .png
or whatever file-extension. Upload your image to the /images
folder. Alternatively you can link to an external site by replacing the entire content in the ()
. Example:
![](/oucc-backend/images/cuppers1.jpg)
![](https://cdn.cherwell.org/wp-content/uploads/2019/06/30010234/chess-club.jpg)
Check this document if you want to see a full reference.
Alternatively, use this markdown preview editor to see how your formatting would directly render. Just type what you see!