This site uses mkdocs. Python version 3.5 or greater is required. Installation instructions are located below, in the Python section.
-
Clone this repository.
-
(optional) Set up a Python virtual environment.
-
Install the required packages with pip by using the command,
pip3 install -r requirements.txt. -
If running Windows, simply run
serve.bat. Otherwise, change the working directory to./ChunkyGallery. -
Serve the site for development by using the command,
python -m mkdocs serve --dev-addr 127.0.0.1:8001. -
Build a preview of the final site by using the command,
python -m mkdocs build.
-
Python: This script runs on Python; therefore, Python must be installed on your computer. Download Python from here. Download the latest release of Python 3 that is compatible with your operating system. When running the installer, ensure that pip is set to be installed. Pip will be used to install the next dependency.
-
wget: This script uses the Python wget module to download the gallery images. If pip is installed, then the wget module can be installed with the command,
pip3 install wget. -
ImageMagick: This script uses ImageMagick to generate the thumbnails for the images. On Windows, ImageMagick should be added to the
Pathenvironment variable for the script to function properly.
-
Download the
ImageMagick-7.1.0-portable-Q16-x64.zipbuild from the ImageMagick downloads page. -
Extract the contents of the ZIP file to a location on your computer.
-
Locate the
magick.exefile in file explorer, and copy the folder path that is in the address bar. -
Open the
Environment Variableswindow. This can often be found by searching in the Search Bar. -
Click on the
Pathvariable to select it, and then clickEdit.... -
At the end of the string of text in the
Variable valueinput field, add a semicolon;, and then paste the folder path that you copied in Step 3. -
Click
OK. -
Click
OK. -
Open a
cmdwindow, and run the command,magickto ensure that ImageMagick has successfully been added to thePathvariable.
If you get the error, Invalid argument or not enough arguments, then ImageMagick has been successfully added to the Path variable.
-
gallery.csv- Contains a list of all Gallery entries we have. Due to mistakes that have been made, we currently have "full" information for only new submissions. -
templates\- Contains some .html templates which are used to create original image pages and gallery containers. -
ChunkyGallery\gallery\index.md- is the target file for the script and must have<!--GALLERY_START-->and<!--GALLERY_END-->tags in order for the script to function.
-
Import new entries from https://docs.google.com/spreadsheets/d/1B3PD0AAc_gwNES8b1uaETQwswkjEcHbwJy8EH9M1k88/edit?usp=sharing into
gallery.csv. -
Clean-up new entries in
gallery.csv; add missing credits, clean up features, etc. -
Run
auto_gallery.py. -
Fix any errors you come across... This is usually stray spaces.
-
PR
images\gallery\changes first. -
PR all other changes.
By default we do not re-generate files.
-
Delete/clear
ChunkyGallery\gallery\img\thumbnailandChunkyGallery\gallery\image_html| It is not recommended to clearimages\gallery. As some entries do not have a Google Drive URL, we cannot recover these easily. -
Run
auto_gallery.py. -
Fix any errors you come across...
-
PR as normal.
