Commit Graph

395 Commits

Author SHA1 Message Date
mpl 9beb003f30 website: feature monthly releases
Fixes #690

Change-Id: I05db5f29656d76237621fc2479d59d71cb917bb0
2016-07-06 16:41:15 +02:00
mpl ce8b329d1d website: update CLA instruction
Change-Id: I399ad44a0ebdeff05efd1dabb3137299b01f112b
2016-06-24 18:12:42 +02:00
Mathieu Lonjaret 77f50b2579 Merge "website: mv downloadBox to all.css" 2016-06-20 15:55:54 +00:00
mpl 1087a9d837 website: mv downloadBox to all.css
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
2016-06-20 17:51:46 +02:00
Eric Drechsel 6321f9b951 Instantiate markdownRenderer per-request
We were reusing markdownRenderer per-launch,
which was leading to auto-generated ids incrementing
on each request. See

https://github.com/russross/blackfriday/pull/129

Fixes #814.

Change-Id: Idb97348b076e4514cf22abe462bbdf3f8e7f6f9e
2016-06-19 14:32:07 -07:00
mpl 1ab6ff4176 website: use Let's Encrypt
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
2016-06-10 17:55:16 +02:00
Eric Drechsel 71d323bb02 Document workflow for editing documentation.
Change-Id: Ia8e19770a45528ef2fee18cffa007e7fcf96ebe3
2016-06-03 14:43:00 -07:00
Eric Drechsel 7ab869d542 Convert code, community, and download pages to md.
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
2016-06-03 14:43:00 -07:00
Eric Drechsel d9c28e5267 Comment explaining that contributors.html is a fallback.
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
2016-06-03 14:06:30 -07:00
Alok Parlikar 7b9b9d58a9 Website: Update Min Go Version to 1.6
Fixes #794

Change-Id: I0d6fd6b32862bef24a2fcd87fff20b82db4b0426
2016-05-30 20:43:15 +05:30
Kate Pek ac0cc13beb Add links for the latest presentation
Change-Id: I47ab9b831167734892bca5cebc0f7bd3cac39bf6
2016-05-05 17:26:38 -07:00
mpl 4232071cb3 misc/monthly.go: automatically generate a monthly release
Current version of doc/release/monthly.html generated with
go run ./misc/monthly.go -rev cdadfd650b

Change-Id: Icdebf60cb64dfcc12766976572f3a34eaeb135f3
2016-05-05 23:16:57 +02:00
Will Norris 7312e50924 website: strip directory index and file extensions
redirect to cleaner URLs without file extension or directory index
filename (index.html or README.md)

Fixes #732

Change-Id: I6332571b2d8ec1ea48e697d31017eb6a63fe1a12
2016-05-02 06:22:49 -07:00
Will Norris 1f0340b436 website: simplify docHandler
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
2016-05-01 21:53:22 -07:00
mpl d2ee6fe5dd website: redirect builder to travis
Fixes #658

Change-Id: I16f7d840e74320aad518ae7bdfd5702bace85cd4
2016-04-30 17:35:29 -07:00
Brad Fitzpatrick b8b310ac14 Merge "Fix permissions for files" 2016-04-30 21:28:02 +00:00
Will Norris 5dd8671051 vendor: update cloud,grpc,protobuf libraries
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
2016-04-29 19:42:33 -07:00
Tilman Dilo d208b531c9 Fix permissions for files
Use mode 0644 instead of 0755 for non-vendored files.

Change-Id: Ifbe1d5e21f24814531248a8a6c84d6f0a72c071c
2016-04-28 21:15:09 +02:00
Will Norris a1ec9bf60e rename HACKING to CONTRIBUTING.md
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
2016-04-27 12:16:29 -07:00
Will Norris 7ec2b0ac2e website: update doc URLs
s/docs/doc/ and s/http/https/ for camlistore.org doc URLs in website and
code.

Change-Id: I875e2acece1f594a304f2bdb63f756fcb315abc8
2016-04-27 08:48:50 -07:00
Will Norris 3cc1efc75e website: serve non-HTML files as raw bytes
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
2016-04-26 16:25:45 -07:00
Will Norris 066db0952c website: use custom markdown options
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
2016-04-26 12:47:40 -07:00
Brad Fitzpatrick f7e40292cb camweb: redirect /doc/dir to /doc/dir/ with trailing slash
Also fix up non-canonical links in docs after rename of /docs/ to /doc/

Updates #732

Change-Id: I7131f57cc7f8edf150cc785f42fe48917835c361
2016-04-26 09:46:07 -07:00
Will Norris fc619464df website: serve godocs for /app/ packages
Change-Id: If2836840aa5523e74a734051111e0ed614ea200e
2016-04-25 22:40:17 -07:00
Mathieu Lonjaret 7df8dbb2db Merge "website: always remove old demoblob3179 container" 2016-04-26 05:21:34 +00:00
Mathieu Lonjaret d422b6e942 Merge "website: serve /doc/ URLs from top-level doc dir" 2016-04-26 05:17:54 +00:00
Will Norris 7cb074bfde website: serve /doc/ URLs from top-level doc dir
- move existing content from website/content/docs to top-level doc
  directory
- redirect /docs/ URLs to /doc/

Fixes #720

Change-Id: I92e26bbc1fdbe994089080ae3a971d85c12921ab
2016-04-25 22:13:09 -07:00
Mathieu Lonjaret e0d422768d Merge "website: refactor mainHandler to allow diff roots" 2016-04-26 01:02:23 +00:00
Will Norris 6196e6ab98 website: refactor mainHandler to allow diff roots
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
2016-04-25 18:01:27 -07:00
Brad Fitzpatrick 3c5b519c1e Merge "website: redirect to https" 2016-04-26 00:40:22 +00:00
mpl d9fa1ed87e website: do a full cloning of camlistore.org on startup
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
2016-04-25 17:30:17 -07:00
Brad Fitzpatrick 8a2f1f4a65 website: redirect to https
Fixes #721

Change-Id: Ib75e1023eb56afc6c15e826bc0d26ff6b3c7a859
2016-04-25 15:12:08 -07:00
mpl fe8372e117 website: fix ssh for git push to github
issue #708

Change-Id: Ib01f6c378924becb03173724c452d42907b995e8
2016-04-25 14:00:10 -07:00
mpl 2766655a24 Test commit for github syncing
Change-Id: I7232c8735bde2a7155e8cb91370ffde5d0ef56a9
2016-04-25 09:42:19 -07:00
Mathieu Lonjaret 36d9d8d7eb Merge "website: sync commits to github" 2016-04-25 16:25:56 +00:00
mpl 43f2e48dd0 website: sync commits to github
Fixes issue #708

Change-Id: I0e081724134ab08c736b00bd2ebe81eb9028ace7
2016-04-24 22:28:16 -07:00
Brad Fitzpatrick 75d60962f6 Move remaining stuff in third_party/* to vendor/*
Change-Id: Ifbcc02817083cba68d8c1acec3e6ec50e8f61149
2016-04-20 16:49:15 -07:00
Daniel Heath a48a240cfa website: document importers in server-config
Change-Id: I314a1be002ea5983a52e0e4bf2a8e8d7b1e5d2f1
2016-03-24 15:22:22 +11:00
Will Norris 77ed42edf8 add canonical import paths
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
2016-03-13 19:57:14 -07:00
Attila Tajti 364ed6be3e website/client-config: hint about paths, multiple aliases and sync
Change-Id: I9c5ce60a458da7888e30137486e9a6eb22a35c76
2016-02-18 08:02:14 +01:00
mpl 255b51a5a0 website: always remove old demoblob3179 container
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
2016-02-08 22:05:37 +01:00
mpl 88b9dc826f website: print error for demo blobserver
Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c
2016-02-08 14:52:18 +01:00
mpl 60a2885a20 website: fix missing return from prev commit
Change-Id: Ia74013db252601a9dbd7eb7911e1dc892e1c56b4
2016-01-19 00:46:46 +01:00
mpl 528a201827 website: make /apiget in demo authenticated too
Change-Id: Ief662a69774fcc919c4e3618df91886cb1f05b84
2016-01-19 00:39:13 +01:00
mpl f478c6cc67 website: chrome bug repro demo
For issue #660

Change-Id: I7b53da99b4ba50a6ec5818d291083aab72f994ab
2016-01-19 00:03:36 +01:00
Brad Fitzpatrick 8e862472a4 website: update homepage's latest release
Change-Id: Ib972aa046b64cc3aab9d9f864db5a2d3de600499
2015-12-30 11:14:21 -08:00
Brad Fitzpatrick cf0c847fbf website: the 0.9 release is now named Astrakhan, and out.
And fix some text and redirects.

Change-Id: I8cf26a028fe79b6daa8817caff85279e314d12c6
2015-12-30 11:10:51 -08:00
Brad Fitzpatrick 33ce243eb9 website: redirect bare /dl to /download
Change-Id: Ie5f249d478fcb589824c056bf61c7af7c54155ab
2015-12-30 10:50:54 -08:00
Mathieu Lonjaret 4b76b169bf Merge "website: 0.9 notes: images resizing" 2015-12-30 10:56:59 +00:00
mpl ddd27e90ae website: 0.9 notes: images resizing
Change-Id: I7284aacc3c54aad9c84c1291f20fc343c712ebb5
2015-12-30 00:30:49 +01:00