Skip to content

Conversation

@TomFreudenberg
Copy link
Contributor

@TomFreudenberg TomFreudenberg commented Apr 24, 2021

The godoc static files are not mounted in general by vfs.

The patch allows to overlay only several template files
with custom files.

@google-cla google-cla bot added the cla: yes label Apr 24, 2021
@TomFreudenberg
Copy link
Contributor Author

Attention - in case of missing branch this PR supersedes #307

@gopherbot
Copy link
Contributor

This PR (HEAD: 1f5195d) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/313091 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

TomFreudenberg added a commit to TomFreudenberg/golang-tools that referenced this pull request Apr 25, 2021
This feature enables to create a template file named
navmenu.html optionally.

If this exists, it will included into the menu div and
allows to extend the navigation for some custom
stativ pages.

Also if exist, there is no redirect from "/" to "/pkg/"
anymore. In case of this also a custom index page
could be created.

This patch enables the godoc server to a full customizable
documentation site of go projects.

PR golang#309 should be applied in addition so that only partial
overload of templates is necessary.
TomFreudenberg added a commit to TomFreudenberg/golang-tools that referenced this pull request Apr 25, 2021
This feature enables to create a template file named
navmenu.html optionally.

If this exists, it will included into the menu div and
allows to extend the navigation for some custom
stativ pages.

Also if exist, there is no redirect from "/" to "/pkg/"
anymore. In case of this also a custom index page
could be created.

This patch enables the godoc server to a full customizable
documentation site of go projects.

PR golang#309 should be applied in addition so that only partial
overload of templates is necessary.
@TomFreudenberg TomFreudenberg changed the title fix: templateDir /lib/godoc not mounted in general // Supersedes #307 Apr 27, 2021
@TomFreudenberg TomFreudenberg changed the title godoc/server: fix: templateDir /lib/godoc not mounted in general Apr 27, 2021
@gopherbot
Copy link
Contributor

Message from Dmitri Shuralyov:

Patch Set 3:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tom Thomas Freudenberg:

Patch Set 3:

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

Even that there already a `vfs.BindBefore` option was used when an optionally `templateDir` was given, the default static content was not mounted always.

Without the patch you can only replace the __all__ templates but now also single ones.
@TomFreudenberg TomFreudenberg force-pushed the fix-mount-lib-godoc-in-general branch from 1f5195d to 3447088 Compare May 1, 2021 14:52
@gopherbot
Copy link
Contributor

This PR (HEAD: 3447088) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/313091 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@TomFreudenberg
Copy link
Contributor Author

For ongoing discussion I rebased the PR to latest HEAD of master

@gopherbot
Copy link
Contributor

Message from Tom Freudenberg:

Patch Set 3:

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tom Freudenberg:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: a725f76) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/313091 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Dmitri Shuralyov:

Patch Set 3:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tom Freudenberg:

Patch Set 3:

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tom Freudenberg:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/313091.
After addressing review feedback, remember to publish your drafts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants