/fluidproject.org

The Fluid Project website

Primary LanguageJavaScript

Fluid Project Website

This repository contains the files needed to build a copy of the Fluid Project website.

This is not an immediately deployable version of the website - docpad is used to build the site from source files.

To Build

  1. Edit docpad.coffee URL value to reflect your target URL (with no trailing slash). The default value is http://localhost:9778. Example:
url: "username.github.io/fluidproject.org"
  1. Run docpad from the fluid-website directory
> cd fluidproject.org
> docpad run
  1. Open http://localhost:9778/ to see the website. This URL will be different if you changed the URL value in step 1.

To deploy to gh-pages:

  1. Change the url: value in the docpad.coffee to match your deployed gh-pages URL.
  2. Deploy to gh-pages, run: > docpad deploy-ghpages --env static

This will:

  • create generate output files under the /out/ directory
  • create a new gh-pages branch in the remote origin github repository
  • push the files in the out directory to the remote gh-pages branch on origin.

For more information on the gh-pages plugin, see: https://github.com/docpad/docpad-plugin-ghpages.

To deploy to a webserver

  1. Change the url: value in the docpad.coffee to match your deployed URL.
  2. Run: > docpad generate --env static
  3. Copy the contents of ./out/ directory to your server.

Notes

  • Modifications can be done to any source file or directory except for the contents of the out/ directory. The out directory and its contents are not to be versioned since it contains the generated output made by docpad from the source files and are overwritten.

  • The 404 error page will only appear when deployed to the root of a gh-pages domain or gh-pages custom domain. It will not appear when deployed locally or when deployed through a gh-pages (sub) project. To test the 404 error page, either load the 404.html directly in a browser, or deploy to the root of a gh-pages domain.

  • There are known issues regarding relative and absolute paths. See FLUID-5588 and FLUID-5570.

Plugins used

The following plugins are used in this website. They a provided here as a reference:

License

The Fluid Project website is available under Creative Commons Attribution License.