Skip to content

Lots of goodies #2

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

Merged
merged 10 commits into from
Nov 12, 2013
Merged

Lots of goodies #2

merged 10 commits into from
Nov 12, 2013

Conversation

fgrehm
Copy link
Contributor

@fgrehm fgrehm commented Nov 12, 2013

Here we go, my first Golang PR EVAH 😃 🎆

What's on this PR:

  • Some basic instructions for hacking on the project
  • Support for building docs for specific revisions with repo~ref
  • "Just enough README" for those who reaches the project on GitHub
  • Error out if ACCESS_TOKEN is not set
  • go fmt

progrium added a commit that referenced this pull request Nov 12, 2013
@progrium progrium merged commit 14f2976 into progrium:master Nov 12, 2013

bodyStr := string(body)
// Ajust relative links for specific git revisions
// FIXME: This doesn't handle relative links on the template / layout,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I got excited about sending the PR and forgot to mention this. I'm not sure what's the best approach for handling links relative to the current git branch on the generated HTML so I hacked together this regex to at least adjust links inside the markdown :P

Copy link
Owner

Choose a reason for hiding this comment

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

This is pretty good. We could expose the ref to the template, but since there's no logic it makes it difficult to handle the default master case vs non-master. This seems good enough for now.

@progrium
Copy link
Owner

Pulled and deployed. Also updated the style a bit.

@fgrehm
Copy link
Contributor Author

fgrehm commented Nov 12, 2013

Awesome! And it werks :)

@fgrehm fgrehm mentioned this pull request Dec 9, 2013
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.

2 participants