The test added for proper markdown title generation
do not work when run via devcam. This is caused by
depending on doc/uses.md as the input testdata.
devcam does not copy markdown files into the target tmp
directory so this test fails when run that way.
Solution is create a markdown file in a testdata directory.
These are copied to the target tmp directory and the test
succeeds.
Change-Id: Iae654dca2374b925e6c895a71d4d93b12ccc188b
It appears that markdown generation added class ids at some point.
This means that all pages on perkeep.org have the title "Perkeep"
Also added a test for this case.
This issue was flagged by the Google Webmaster Tools.
Change-Id: I7ddab56e03a506b84aab415d94856b8f1c126250
this is a straight revert of 02938281 plus the additional logic to
derive the domain name from the serving directory. This allows package
docs to also be served from localhost during development.
Updates #1010
Change-Id: I07f817edb0b83b03e363373945d143ed3cb82fbf
followup of 7eda9fd502
We want existing Perkeep instances on GCE to be able to keep on running
with their DBNames-style existing databases.
To that end, we introduce the "perkeep-config-version" metadata key,
which will be set by the launcher from now on.
When perkeep configuration starts, it can lookup that key. If it is set,
it means we're in a newly created instance, and we don't need to care
about DBNames compatibility. If not, we modify the low level
configuration on the fly, so that it keeps on using the old DBNames
values that were set for a GCE instance.
Change-Id: I611811fdb9c68777c2ba799e9047d00ec0bae040
Remove goexif local changes (a TODO, README and gofmt)
Update to rev: 709fab3d192d7c62f86043caff1e7e3fb0f42bd8
Use dep to prune unused files
Change-Id: Icce8885917b798b25eaeed4c98ff393ce0db66b8
DBNames is supposed to provide configuration for the various databases
names. However,
1) I contend that nobody needs or wants to configure them as long as we
provide sane defaults.
2) it seems the only obvious user we have for this is to set up some of
the names on GCE.
3) having another external source for names complicates the code
further, especially when we already have the distinction between
database names for DBMS and file names for file-based databases.
4) writing a correct documentation for it is awkward.
Therefore, in this CL, I propose that we remove DBNames. Instead,
genconfig.go now sets some consistent default names for the various
queues and indexes set up on a DBMS (MySQL, PostGres, Mongo). To that
end, we introduce the new, but optional, DBUnique configuration
parameter, that is used as a part of all the database names, in order to
be able to run several Perkeep instances on the same DBMS, without name
conflicts.
In addition, the queue for the bs->index synchandler is now set up on
the same DBMS that is already in use for the index itself, instead of
using a file-base database.
And i think we could proceed likewise for the other queues.
Fixes#951
Change-Id: Ib6a638f088a563d881e3957e4042e932382b44f4
This pulls in a clean upstream version of go-sqlite3 at revision
919cf4144a09abfd877330bbe735f3a243a84537 using the dep tool.
The current method of using the -sqlite flag in make.go appears to
enable conditional builds with/without sqlite3, obsoleting the
need for local modifications.
We also manually remove sqlite
Addresses: #889
Change-Id: I4d2c107cd12608ac0bcb7c0607629ecb2d7f880f
The mongo integration was using a very old package. It's using
a new namespace now. Upgrade and adjust all call points
Removes labix.org/v2/mgo
Introduces gopkg.in/mgo.v2 from branch v2 with revision
3f83fa5005286a7fe593b055f0d7771a7dce4655
Change-Id: I2784fca941998460f58e0ac8d3d51286401590b5
Calls to net.Dial* are prohibited with GopherJS. This can happen if the
client's transport is set by the user.
This change forces transportForConfig to return nil when the client
package is compiled with gopherjs, in order to make sure that a call to
newClient returns a client with a nil transport.
Change-Id: I577457bd7d924d31710168086dc2b394df3d1ae0
Fix case of Twitter handle PerkeepOrg (no capital K).
Add a /keepy page about Keepy the Perkeep parakeet.
Embolden anchor text so it stands out from regular text.
Embed tweets on main page.
Change-Id: I07bdaab3c1bb480eab849fbdb8a516b772905e38
This is Keepy the Perkeep Parakeet, from Ashley McNamara, @ashleymcnamara.
The CSS & HTML changes are my fault. We can revise later.
For the rename, issue #981
Change-Id: Ifaf4e4d9a92b5d6d79473f0e9aec9db8f51aa7b1
With Go master (roughly Go 1.10):
name old time/op new time/op delta
Rollsum-8 39.0ms ± 2% 22.2ms ± 2% -42.93% (p=0.008 n=5+5)
name old speed new speed delta
Rollsum-8 135MB/s ± 2% 236MB/s ± 2% +75.23% (p=0.008 n=5+5)
Change-Id: Ic933f8ee5f1ffaada8e37c8ac19edb7d6c0fc57d
Various text packages were previously imported from
rev 88f656faf3f37f690df1a32515b479415e1a6769
This includes the dep included/pruned version of x/text so that
we can update golang.org/x/net to the latest revision.
Addresses: #889
Change-Id: I54e8b02aef70d16519801b8fafd6bfd5548af4cd