Commit graph

497 commits

Author SHA1 Message Date
Matt Baer
261a6fefd6 Merge branch 'master' into develop 2019-01-27 14:54:50 -05:00
Matt Baer
02054aae18 Link to documentation repo 2019-01-26 21:25:38 -05:00
Matt Baer
ef40c50920 Link to tutorials on some features
Also, add static pages
2019-01-26 11:59:02 -05:00
Matt Baer
e1cd11df20 Update go get instructions
Including the `-d` flag ensures the package doesn't build. We need this
because it will immediately fail, since the static assets haven't been
compiled yet.
2019-01-26 11:13:36 -05:00
Matt Baer
cd752858b7 Fix --create-user usage error message 2019-01-26 11:11:17 -05:00
Matt Baer
c11ede53d9 Return error from adminCreateUser()
...instead of using os.Exit(). This makes it more apparent what's going
on, less error-prone, and more consistent with other command logic paths.
2019-01-26 11:06:58 -05:00
Matt Baer
08667d8978 Return error from adminInitDatabase()
...instead of doing os.Exit(). This allows the func to be used in many
places (as it is) and handle success results in different ways.

Previously, this caused the single-user configuration process to exit
prematurely. This fixes that and closes #71.
2019-01-26 10:52:11 -05:00
Matt Baer
47d18b2cc4 Merge branch 'master' into develop 2019-01-24 21:11:47 -05:00
Matt Baer
9c6e7eda65 Fix Write.as pricing link 2019-01-24 21:11:04 -05:00
Matt Baer
e682824be5 Add @nkoehring to AUTHORS 2019-01-24 17:24:07 -05:00
Matt Baer
ed5c4ec8b1
Merge pull request #65 from nkoehring/optimize-webfont-loading
use font-display:optional to optimize web font loading
2019-01-24 17:22:56 -05:00
Matt Baer
8b94418d3f Bump version to 0.8.0 2019-01-24 17:10:09 -05:00
Matt Baer
73ca34bb21 Ignore all .ini files 2019-01-24 17:09:48 -05:00
Matt Baer
3a6118c207 Set up migrations table on initial setup
This includes the appmigrations table in the schema files, and inserts
the current database version when running writefreely --init-db
2019-01-24 17:08:08 -05:00
Matt Baer
5e686a5b0f Update import schema step
Note the step is only required for multi-user instances.
2019-01-24 16:38:28 -05:00
Matt Baer
b91c931ebd Tweak links at top of README 2019-01-24 16:36:58 -05:00
Matt Baer
53dfe4d215 Add Hosting section to README 2019-01-24 16:35:04 -05:00
Matt Baer
e853a15303
Merge pull request #68 from writeas/user-invites
Support user invites
2019-01-23 13:02:16 -05:00
Matt Baer
eb8f56a6e2 Merge branch 'master' into develop 2019-01-20 17:16:17 -05:00
Matt Baer
5de193a64d Generate encryption keys in configured directory
This makes --gen-keys respect the keys_parent_dir config value
2019-01-20 14:18:09 -05:00
Matt Baer
1c40103fbf Fix generateKey error logging
This logs the actual error when it occurs, instead of always saying that
the key already exists.
2019-01-20 13:43:06 -05:00
Matt Baer
cb1bd37f64
Merge pull request #69 from writeas/resource-dirs-config
Support configuring resource directories
2019-01-19 00:26:29 -05:00
Matt Baer
14f0d446e6 Merge branch 'resource-dirs-config' into develop 2019-01-18 19:18:23 -05:00
Matt Baer
5c19d249b6 Log and exit when templates init fails 2019-01-18 19:17:10 -05:00
Matt Baer
53a51be578 Support configuring resource directories
This adds new configuration values that specify the parent directory of
application resources:

- templates_parent_dir
- static_parent_dir
- pages_parent_dir
- keys_parent_dir

For any values not specified, the application will default to the
current directory.

This closes T560
2019-01-18 19:09:27 -05:00
Matt Baer
6c7ee76768 Support configuring resource directories
This adds new configuration values that specify the parent directory of
application resources:

- templates_parent_dir
- static_parent_dir
- pages_parent_dir
- keys_parent_dir

For any values not specified, the application will default to the
current directory.

This closes T560
2019-01-18 18:57:04 -05:00
Matt Baer
41b2f7628f Describe package parse 2019-01-18 11:36:56 -05:00
Matt Baer
820b0ba6b9 Organize flags and add comments 2019-01-18 11:34:25 -05:00
Matt Baer
d8876058a6 Add WriteFreely version to admin dash 2019-01-18 11:33:57 -05:00
Matt Baer
01f9dc86dc Fix migrations MySQL table check 2019-01-18 11:26:55 -05:00
Matt Baer
70e823d6ab Support user invites
This includes:

- A new `user_invites` config value that determines who can generate
  invite links
- A new page for generating invite links, with new user navigation link
- A new /invite/ path that allows anyone to sign up via unique invite
  link, even if registrations are closed
- Tracking who (of registered users) has been invited by whom

It requires an updated database with `writefreely --migrate` in order to
work.

This closes T556
2019-01-18 00:05:50 -05:00
Matt Baer
47b2155f92 Add --migrate command
This runs database migrations and obviates the need for manually running
changes.

Ref T509
2019-01-17 13:53:03 -05:00
Norman
7da8b3aef6
Fixes indentation 2019-01-16 23:07:44 +01:00
Matt Baer
6c2bd8031a
Merge pull request #66 from TeDomum/master
Deploy the app in the proper dir for dependency management
2019-01-16 15:26:34 -05:00
kaiyou
8ead0a9d09 Deploy the app in the proper dir for dependency management 2019-01-16 21:05:52 +01:00
koehr
059f0d4c54 use font-display:optional to optimize web font loading 2019-01-16 16:07:20 +01:00
Matt Baer
a76144c182 Fix rendered sublist spacing
Along with a recent change to how spaces are output by the
writeas/saturday library, this alters the CSS to make sublists display
correctly, and fixes #27.
2019-01-14 14:01:43 -05:00
Matt Baer
a9dff35f70 Bump version to 0.7.1 2019-01-13 09:41:48 -05:00
Matt Baer
062ae0e16a Initialize db on single-user instance config
This fixes the --config step so that when setting up a single-user
instance for the first time (and creating the admin user as part of the
process), the database is automatically initialized before creating that
user.

This removes the need for the --init-db command after --config when
setting up single-user instances.

It fixes #59: "no such table: users" error during the --config step on
single-user instances that haven't previously run --init-db.
2019-01-13 09:08:47 -05:00
Matt Baer
d0edbd1936 Use showUserPage func for blog customize page
This fixes the page not rendering on Windows.

Closes #61
2019-01-10 23:11:52 -05:00
Matt Baer
21e6c64708 Add make release-linux command 2019-01-10 11:44:30 -05:00
Matt Baer
6da342b0d1 Add make build-no-sqlite
Supports creating a build without SQLite support compiled in.
2019-01-10 11:44:08 -05:00
Matt Baer
7c9bd10f73 Add Pull Request template 2019-01-09 18:11:19 -05:00
Matt Baer
a686b61902 make assets before everything in Docker build 2019-01-07 20:39:42 -05:00
Matt Baer
64a8e2d0a5 Exclude unneeded schema.sql in docker build 2019-01-07 19:22:12 -05:00
Matt Baer
fe98bd58fc make assets during docker build 2019-01-07 19:21:55 -05:00
Matt Baer
caf976a054 Bump version to 0.7.0 2019-01-07 18:49:16 -05:00
Matt Baer
c2a7f19ef0 Add numeric avatars 2019-01-07 15:40:37 -05:00
Matt Baer
2942a6818e Fix AP follower INSERT with SQLite
Previously the query would fail with "no such function: NOW"

Closes #56
2019-01-07 14:35:47 -05:00
Matt Baer
8a555567a6 Fix tagged posts SQLite query
SQLite doesn't have an `RLIKE` function, so the query for hashtagged
posts was failing before. This adds a `regexp` function to SQLite and
correctly retrieves all posts on a blog with the requested hashtag.

This closes #55
2019-01-07 11:55:23 -05:00