Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

question: can we use custom templates to serve the docs? #400

Open
neumachen opened this issue Apr 18, 2016 · 6 comments
Open

question: can we use custom templates to serve the docs? #400

neumachen opened this issue Apr 18, 2016 · 6 comments

Comments

@neumachen
Copy link

Can we use custom templates to serve the docs? If so, how is that achieved?

@dmitshur
Copy link
Contributor

I'm not quite sure what you mean by custom templates, can you give an example of what it'd be like? I'm guessing the answer is there is no such thing on godoc.org.

Are you already familiar with all the features that Go allows you to use in formatting the docs? https://godoc.org/github.com/natefinch/godocgo is a good explanation and demonstration of most features.

@neumachen
Copy link
Author

I mean can we add styling to the html pages that get generated?
Something like this I guess, http://dhconnelly.github.io/docgo/docgo.html.

@dmitshur
Copy link
Contributor

docgo looks really cool.

I mean can we add styling to the html pages that get generated?

As far as I know, and assuming I understand correctly, I don't think that the list of features that godoc.org supports includes that (unless you modify its source, of course).

@neumachen
Copy link
Author

@shurcooL yeah I know right? I thought this was possible in the earlier versions of gddo with a -template flag. Bit I could be wrong. I mean I love godocs and all but I want to add a bit of custom design to it while still be up to date with this repo's master.

@ivansantosz
Copy link

Any finding on that?

@jackwilsdon
Copy link

Looks like you can pass a custom path to the assets folder using -assets path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants