Rids us of the IsMonthly hack.
We still need to do something about AddTemplateTheme in handler.go
though, see TODO there. In another change.
Also, change servePage to take a struct for its args, more in line with
Go style of few arguments.
Context: issue #815
Change-Id: Ib6799be31b78af3010eee942034f2ac0e8e1d76e
We were reusing markdownRenderer per-launch,
which was leading to auto-generated ids incrementing
on each request. See
https://github.com/russross/blackfriday/pull/129Fixes#814.
Change-Id: Idb97348b076e4514cf22abe462bbdf3f8e7f6f9e
rsc.io/letsencrypt vendored at rev
a019c9e6fce0c7132679dea13bd8df7c86ffe26c
vendor/github.com/xenolf/lego was vendored within rsc.io/letsencrypt
vendor/gopkg.in/square/go-jose.v1/ was vendored within
rsc.io/letsencrypt
golang.org/x/crypto at rev 77f4136a99ffb5ecdbdd0226bd5cb146cf56bc0e for
github.com/xenolf/lego
golang.org/x/time/rate at rev a4bde12657593d5e90d0533a3e4fd95e635124cb
for rsc.io/letsencrypt
Fixes#805
Change-Id: I4ccdee328d8832e361fa5a39e5b94edc7c90ec34
Output differences:
- Changed the heading "Contributing to Camlistore" to just
"Contributing", so the heading ID stays the same.
- Remove "ul.lispaced" class, just put newlines
between list items instead (visually identical)
- One instance of obsolete <tt> tag in /code replaced with <code>
Site index page has non-typographic elements, so converting to markdown
seems pointless.
Change-Id: I7b19337742f727f85e58639a1168cc46fd8a4e62
This file would seem to be the source for /contributors, but actually
it's a fallback for /website/content/tmpl/contrib.html.
Add a comment explaining the automatic generation to avoid confusion
for folks attempting to edit the website.
Also rename the template to contributing.html for consistency.
Change-Id: Ic98c494b0cc24292dac8a4a22c751aded87f5b48
Current version of doc/release/monthly.html generated with
go run ./misc/monthly.go -rev cdadfd650b
Change-Id: Icdebf60cb64dfcc12766976572f3a34eaeb135f3
redirect to cleaner URLs without file extension or directory index
filename (index.html or README.md)
Fixes#732
Change-Id: I6332571b2d8ec1ea48e697d31017eb6a63fe1a12
don't strip the "/doc" prefix, which simplifies some of the file
handling logic. Also add a test case for the /docs/ => /doc/ redirect.
Change-Id: I96c60bc031daaeff7f78ca854b60bdc542913b3d
update additional supporting libraries needed with
219f966a95
github.com/golang/protobuf @ 7cc19b78d562895b13596ddce7aafb59dd789318
google.golang.org/grpc @ b062a3c003c22bfef58fa99d689e6a892b408f9d
google.golang.org/cloud @ 36e3752134d445180a77cd40c922c48850b6fe9c
- same as before, just added missing 'internal' package
Tests:
- go run make.go succeeds
- camweb builds and runs
- go test ./pkg/... has a couple of failures, but nothing that wasn't
already failing before this change
Fixes#743
Change-Id: I0a81f471f79255fcb4e0d615630eecce1c5cd966
GitHub treats the CONTRIBUTING file special, in that it is referenced
any time someone files a new issue or starts to create a pull request.
Also make minor updates to file to use markdown and current hacking
instructions.
Change-Id: I68f0d7a69397851ee6c65671ae692cbfb2b93946
The website has several non-HTML files that mostly serve as examples
(eg: https://camlistore.org/doc/json-signing/example/signing-before.camli).
Today these files are parsed and rendered the same as HTML files, which
is particularly bad for these json-signing examples. Instead, they
should be served raw, without any interpretation.
Change-Id: I09f7de130e55da7b2e585f1a110bbbf391f2279f
This is all so that we can enable auto creating header IDs based on the
text of the header. For example "# Foo" is converted to:
<h1 id="foo">Foo</h1>
I'm not really sure why this isn't a default option, but whatever. It's
also unfortunate that we have to copy all of the flags and extensions
from MarkdownCommon, but at least this will make it easier to add more
options in the future, I gues.
Change-Id: I65800c75560ad3b9a3fd0389b722c07ba11ee098
This helps set up serving /docs/ requests out of different file root.
Additional, this allows the actual files on disk used to satisfy
requests to contain a .md or .html file extension (basically simulating
Apache multiviews). Finally, requests that map to directories can be
satisfied by either a index.html or README.md file.
Ref #720
Change-Id: Id6076c242edd74b99a12699cd58c4567973d0d42
We used to have --depth=1 when cloning camlistore.org on startup, for
efficiency reasons.
But not having all the commits locally caused problems when pushing to
github, because it would see the remote had commits that we didn't.
So we're now doing a full cloning.
It looks like it's now taking ~4s (as opposed to ~2.5s before), and
consuming ~50MB diskspace (as opposed to 35MB before).
Plus a few bugfixes.
Change-Id: If7dbae1d3119d8b3336fb7d735f6bd0ba7606fc6
The import path was added to the go file that included the package
documentation if one existed. Otherwise, I used what seemed to be the
primary file for the package.
Fixes#689
Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
Because it can happen that we end up with with an already stopped/killed
demoblob3179, in which case we need to remove it even when killing it is
unsuccessful (because it was already dead).
Change-Id: I289e96284deebeaaa775c23ef6f3fe3bffc3777c