Documentation changes to reflect new plugin assetlink stuff

- updated old theme assetlink section to reflect new location of
   ./bin/gmg assetlink and removed comment about the plugin command
   being temporary.
 - Added a new section to the standard config file on where to put the
   plugin_static section
 - Added release notes about said section

This commit sponsored by Thomas Webber.  Thanks, Dad!
This commit is contained in:
Christopher Allan Webber 2013-05-23 13:43:04 -05:00
parent 23055eb394
commit 24ede04415
4 changed files with 24 additions and 4 deletions

View File

@ -149,13 +149,11 @@ passes back a PluginStatic object.
Running plugin assetlink Running plugin assetlink
++++++++++++++++++++++++ ++++++++++++++++++++++++
.. TODO: Fix this command when it lands elsewhere ;)
In order for your plugin assets to be properly served by MediaGoblin, In order for your plugin assets to be properly served by MediaGoblin,
your plugin's asset directory needs to be symlinked into the directory your plugin's asset directory needs to be symlinked into the directory
that plugin assets are served from. To set this up, run:: that plugin assets are served from. To set this up, run::
./bin/gmg theme assetlink ./bin/gmg assetlink
Using staticdirect Using staticdirect

View File

@ -327,6 +327,11 @@ this ``nginx.conf`` file should be modeled on the following::
alias /srv/mediagoblin.example.org/mediagoblin/user_dev/theme_static/; alias /srv/mediagoblin.example.org/mediagoblin/user_dev/theme_static/;
} }
# Plugin static files (usually symlinked in)
location /plugin_static/ {
alias /srv/mediagoblin.example.org/mediagoblin/user_dev/plugin_static/;
}
# Mounting MediaGoblin itself via FastCGI. # Mounting MediaGoblin itself via FastCGI.
location / { location / {
fastcgi_pass 127.0.0.1:26543; fastcgi_pass 127.0.0.1:26543;

View File

@ -22,6 +22,21 @@ carefully, or at least skim over it.
0.4.0 0.4.0
===== =====
**Do this to upgrade**
1. Make sure to run ``bin/gmg dbupdate`` after upgrading.
2. See "For Theme authors" if you have a custom theme.
3. Note that ``./bin/gmg theme assetlink`` is now just
``./bin/gmg assetlink`` and covers both plugins and assets.
Keep on reading to hear more about new plugin features.
4. If you want to take advantage of new plugins that have statically
served assets, you are going to need to add the new "plugin_static"
section to your nginx config. Basically the following for nginx::
# Plugin static files (usually symlinked in)
location /plugin_static/ {
alias /srv/mediagoblin.example.org/mediagoblin/user_dev/plugin_static/;
}
**For theme authors** **For theme authors**
If you have your own theme or you have any "user modified templates", If you have your own theme or you have any "user modified templates",
@ -34,6 +49,8 @@ please note the following:
You can easily customize this to give a welcome page appropriate to You can easily customize this to give a welcome page appropriate to
your site. your site.
**New features**
0.3.3 0.3.3
===== =====

View File

@ -51,7 +51,7 @@ want to install this theme! Don't worry, it's fairly painless.
5. Link the assets so that they can be served by your web server:: 5. Link the assets so that they can be served by your web server::
$ ./bin/gmg theme assetlink $ ./bin/gmg assetlink
.. Note:: .. Note::