1
0
mirror of https://github.com/golang/go synced 2024-10-01 08:38:47 -06:00
go/godoc/static/bake.sh
Brad Garcia a28efa5d8c godoc: add ability to change or disable the display of search results.
The display of search results can now be changed. A slice of functions for displaying the results can now be provided.  By default, three functions are provided to display documentation, source code, and textual results.
This makes it possible to replace them with equivalents that, say,
obtain search results from alternative source code search engines.

R=bradfitz, adg
CC=golang-codereviews
https://golang.org/cl/43470043
2014-01-06 09:51:01 -05:00

31 lines
499 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright 2013 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
STATIC="
codewalk.html
codewalkdir.html
dirlist.html
error.html
example.html
godoc.html
godocs.js
jquery.js
opensearch.xml
package.html
package.txt
play.js
playground.js
search.html
search.txt
searchcode.html
searchdoc.html
searchtxt.html
style.css
"
go run bake.go $STATIC | gofmt > static.go