Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ typings/
# End of https://www.gitignore.io/api/node,hugo,intellij

content/tutorials/kit-assembly.files

# Don't commit hugo resource cache
resources/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whilst Hugo advocate it, I think committing the CSS build cache is a god-awful idea! I could update the .gitignore from gitignore.io, but adding it to the bottom felt easier

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah it's the css cache! I didn't know that it was in the resources folder (I don't currently use this yet).

I agree with your decision

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also would not have known what this was. Please could we have a comment about what this is?

2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ outputs:
- json

buildFuture: true

assetDir: static/
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The case measures 70x84x20mm. Don’t forget that the cables will stick out.
## Designs
You can access the schematics and source code of the firmware on the motor board in the following places. You do not need this information to use the board but it may be of interest to some people.

- [Full Schematics](/docs/motor-schematic.pdf)
- [Full Schematics]({{% page_resource_link "motor-schematic.pdf" %}})
- [Firmware Source](https://github.com/sourcebots/motor-v4-fw)
- [Hardware Source](https://github.com/sourcebots/motor-v4-hw)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ The case measures 83x99x24mm. Don’t forget that the cables will stick out.
## Designs
You can access the schematics and source code of the firmware for the power board in the following places. You do not need this information to use the board but it may be of interest to some people.

- [Full Schematics](/docs/power-schematic.pdf)
- [Full Schematics]({{% page_resource_link "power-schematic.pdf" %}})
- [Firmware Source](https://github.com/sourcebots/power-v4-fw)
- [Hardware Source](https://github.com/sourcebots/power-v4-hw)
2 changes: 1 addition & 1 deletion content/rules/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ weight: 1

You can find the rules for Smallpeice 2021 competition here!:

# [Download the rules!](/rules.pdf)
# [Download the rules!]({{% page_resource_link "rules.pdf" %}})
File renamed without changes.
3 changes: 2 additions & 1 deletion layouts/partials/custom-header.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<link href="/css/style.css" rel="stylesheet">
{{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
2 changes: 1 addition & 1 deletion layouts/partials/logo.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a id="logo" href='{{ relURL "" }}'>
<img src='{{ relURL "/img/logo-white.svg" }}' />
<img src='{{ (resources.Get "img/logo-white.svg" | fingerprint).RelPermalink}}' />
</a>
3 changes: 3 additions & 0 deletions layouts/shortcodes/page_resource_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ $resource_name := .Get 0 }}

{{ (.Page.Resources.GetMatch $resource_name).RelPermalink }}
262 changes: 0 additions & 262 deletions static/img/api/coordinate-spaces.svg

This file was deleted.