2020-10-24 18:22:08 +00:00
|
|
|
load("//tools/gostatic:rules.bzl", "gostatic_tarball")
|
|
|
|
|
|
|
|
gostatic_tarball(
|
|
|
|
name = "example",
|
2023-07-28 17:14:50 +00:00
|
|
|
srcs = [
|
|
|
|
"src/blog.atom",
|
|
|
|
"src/blog/first.md",
|
|
|
|
"src/index.html",
|
|
|
|
"src/static/style.css",
|
2020-10-24 18:22:08 +00:00
|
|
|
],
|
|
|
|
extra_config = """
|
|
|
|
TITLE = Example Site
|
|
|
|
URL = https://example.com
|
|
|
|
AUTHOR = Your Name
|
|
|
|
|
|
|
|
blog/*.md:
|
|
|
|
config
|
|
|
|
ext .html
|
|
|
|
directorify
|
|
|
|
tags tags/*.tag
|
|
|
|
markdown
|
|
|
|
template post
|
|
|
|
template page
|
|
|
|
|
|
|
|
*.tag: blog/*.md
|
|
|
|
ext .html
|
|
|
|
directorify
|
|
|
|
template tag
|
|
|
|
markdown
|
|
|
|
template page
|
|
|
|
|
|
|
|
blog.atom: blog/*.md
|
|
|
|
inner-template
|
|
|
|
|
|
|
|
index.html: blog/*.md
|
|
|
|
config
|
|
|
|
inner-template
|
|
|
|
template page
|
|
|
|
|
|
|
|
""",
|
2023-07-28 17:14:50 +00:00
|
|
|
source_dir = "src",
|
|
|
|
templates = [
|
|
|
|
"site.tmpl",
|
2020-10-24 18:22:08 +00:00
|
|
|
],
|
|
|
|
)
|