ClassicPress / site-www

Files for the site at www.classicpress.net
Other
2 stars 2 forks source link
classicpress

www.classicpress.net

This repository contains the files for https://www.classicpress.net/.

Local development

Download the site files and contact a site administrator (probably James) for a recent database dump.

Load the database dump into a MySQL database on your computer. The site is configured using a .env file, so you can copy .env.example to .env and fill in your database values there.

You will need to install composer and run composer install in order to download the library that makes the .env file work properly.

Then update the site URL, for example using WP-CLI:

wp search-replace https://www.classicpress.net http://www.classicpress.local

Finally add a local administrative user, for example:

wp user create admin admin@local.host --role=administrator --user_pass=changeme

Pull requests

We accept pull requests for this website via GitHub. Many of the guidelines at https://github.com/ClassicPress/ClassicPress/blob/develop/.github/CONTRIBUTING.md also apply here, for example:

Please always use a separate branch for each change, to avoid issues with your master branch not being reset or updated correctly in between different pull requests. If you're not sure how to do this, you can use the GitHub web interface to edit files, open a new branch, and propose your changes as a pull request.

CSS/JS changes

If you make any CSS or JS changes, you need to update version number in the functions.php to clear cache:

function cp_susty_get_asset_version() {
    return '20210919';
}

Use the date when the changes were made as the version number in the format YYYYMMDD. If there are multiple changes in one day, you can add a decimal to increment the version number (ex: 20210919.1, 20200919.2).