Skip to content

Uploading a pdf

Jeremy Zilar edited this page Jun 17, 2019 · 9 revisions

In order to upload your own PDF to the website (rather than linking to an external PDF), the first step is to add the file to the repository. To do so, follow these steps:

Uploading the new file

  • Remove all spaces from your filename before uploading (e.g. supporting-statement-a.pdf)
  • Navigate to the /uploads/ folder on GitHub
  • Click the Upload files button
  • Add the PDF file using the GitHub upload interface
  • Once completed, commit the file on a new branch in order to start the pull request process.

Referencing the new file within a page's content

Once the PDF has been uploaded and added to the repository, it can be referenced like a normal internal link. Use the following format to create a link to a PDF:

[link text]({{'/uploads/name-of-pdf-file.pdf' | relative_url}})