Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates and cleanup #147

Closed
wants to merge 12 commits into from
Closed

Updates and cleanup #147

wants to merge 12 commits into from

Conversation

RealOrangeOne
Copy link
Member

@RealOrangeOne RealOrangeOne commented Jul 31, 2018

Fixes #108
Replaces #109

Contains:

  • Upgrade Hugo to 0.45.1
  • Pull theme
  • Remove all documents from static/docs, and move to page assets
  • Move rules PDF to page asset
  • Convert logo and CSS file to use asset pipes

trickeydan
trickeydan previously approved these changes Aug 1, 2018
@@ -133,3 +133,5 @@ typings/
# End of https://www.gitignore.io/api/node,hugo,intellij

content/tutorials/kit-assembly.files

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?

@@ -0,0 +1,3 @@
{{ $resource_name := .Get 0 }}

{{ (.Page.Resources.GetMatch $resource_name).RelPermalink }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shiny, does this mean that we get build-time validation of these links?

Copy link
Contributor

Choose a reason for hiding this comment

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

It does, though the error message is nasty:

INFO 2018/08/04 09:43:08 Using config file: /home/peter/sb/docs/config.yml
Building sites … INFO 2018/08/04 09:43:08 syncing static files to /home/peter/sb/docs/public/
INFO 2018/08/04 09:43:08 found taxonomies: map[string]string{}
panic: reflect: Method on nil interface value [recovered]
	panic: reflect: Method on nil interface value

goroutine 148 [running]:
text/template.errRecover(0xc420f0d7f0)
	/usr/local/go/src/text/template/exec.go:143 +0x1ba
panic(0xd761a0, 0x1072ec0)
	/usr/local/go/src/runtime/panic.go:502 +0x229
reflect.Value.Method(0xe031c0, 0xc4205dff68, 0x94, 0x5, 0xc, 0x0, 0x0)
	/usr/local/go/src/reflect/value.go:1151 +0x14f
reflect.Value.MethodByName(0xe031c0, 0xc4205dff68, 0x94, 0xc4206914ed, 0xc, 0x94, 0x1, 0x10841c0)
	/usr/local/go/src/reflect/value.go:1186 +0x11b
<trimmed>

Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably preferable to no error message, but I'm adding it here for reference.

@@ -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.Permalink }}" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Using Permalink here interacts badly with netlify PR deploys as it's always a fully absolute path.

I think we want RelPermalink instead?

@@ -25,7 +25,5 @@ A marker's position can be represented using both the [Cartesian](coordinates/#c
{{% /notice %}}

## Marker PDFs
You can download PDF files of all markers:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please can you cherry-pick 0f5f0a4 (removing the marker links) to the proper branch?

Copy link
Contributor

@PeterJCLaw PeterJCLaw left a comment

Choose a reason for hiding this comment

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

I think we should remove the vision image separately, but otherwise looks fine. Happy for you to merge without re-review once that change has been cherry-picked (see inline for suggestion).

static/img/api/coordinate-spaces.svg Show resolved Hide resolved
@tpoomlmly tpoomlmly requested a review from PeterJCLaw August 9, 2021 01:46
@tpoomlmly tpoomlmly force-pushed the updates-and-cleanup branch from 75656bd to a94307b Compare August 9, 2021 01:49
@RealOrangeOne RealOrangeOne mentioned this pull request Jul 19, 2023
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directory name /static/docs is confusing
4 participants