-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from natcap/task/update-ug-for-trademark-and-…
…branding Update UG for trademark and NatCap branding
- Loading branch information
Showing
16 changed files
with
150 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends '!layout.html' %} | ||
|
||
{% block extrahead %} | ||
{{ super() }} | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:[email protected]&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,[email protected],700&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz@1,8..60&display=swap" rel="stylesheet"> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,45 @@ | |
contain the root `toctree` directive. | ||
InVEST User Guide | ||
================= | ||
InVEST® User Guide | ||
================== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
.. figure:: index/header.png | ||
|
||
.. figure:: index/main_image.png | ||
|
||
.. image:: index/NatCap-Logo-2016-400px.png | ||
:align: center | ||
:scale: 50 % | ||
|
||
.. hlist:: | ||
:columns: 3 | ||
|
||
* .. image:: index/Woods_logo_300w.png | ||
:alt: Stanford Woods Institute for the Environment | ||
|
||
* .. image:: index/SRC_logo_300w.png | ||
:alt: Stockholm Resilience Centre, Stockholm University | ||
|
||
* .. image:: index/TNC_logo_300w.png | ||
:alt: The Nature Conservancy | ||
|
||
* .. image:: index/SU_dept_bio_logo_300w.png | ||
:alt: Stanford University Department of Biology | ||
|
||
* .. image:: index/IonE_logo_300w.png | ||
:alt: University of Minnesota Institute on the Environment | ||
|
||
* .. image:: index/WWF_logo_300w.png | ||
:alt: World Wildlife Fund | ||
|
||
* .. image:: index/CAS_logo_300w.png | ||
:alt: Chinese Academy of Sciences | ||
|
||
* .. image:: index/RSA_Beijer_logo_300w.png | ||
:alt: Beijer Institute of Ecological Economics, Royal Swedish Academy of Sciences | ||
|
||
**Suggested citation**: Natural Capital Project, |commit_year|. InVEST |version|. | ||
Stanford University, University of Minnesota, Chinese Academy | ||
of Sciences, The Nature Conservancy, World Wildlife Fund, Stockholm | ||
|
@@ -112,6 +141,18 @@ we may have inadvertently missed someone. If you do not see your name listed | |
above and think it should be, please contact | ||
[email protected]. | ||
|
||
Attribution Guidelines | ||
---------------------- | ||
When referring to analyses or data products that | ||
were produced with InVEST, please cite the use of InVEST and include a | ||
hyperlink (e.g., This analysis used InVEST :sup:`®` : | ||
https://naturalcapitalproject.stanford.edu/software/invest). The trademark | ||
symbol (:sup:`®`) should be used at the first mention of InVEST. The full citation for | ||
papers, reports, etc. is available above. You are also welcome to use the | ||
`InVEST logo <https://drive.google.com/drive/folders/1LrOIY2LOAwAIqG0uAJEReA6ndFEAGpc_>`_ | ||
in line with our | ||
`Trademark and Logo Use Policy <https://naturalcapitalproject.stanford.edu/invest-trademark-and-logo-use-policy>`_ . | ||
|
||
|
||
|
||
Introduction and Getting Started | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
"""Resample partner logos to a consistent size, currently 300x300. | ||
The grid of partner institutions on the main index page looks best when we can | ||
guarantee that all of the images are in the partner grid are the same size. | ||
Run this script before committing images and using them in the build. | ||
""" | ||
import math | ||
import sys | ||
|
||
from PIL import Image | ||
from PIL import ImageOps | ||
|
||
TARGET_WIDTH_PIXELS = 300 | ||
TARGET_HEIGHT_PIXELS = 150 | ||
|
||
|
||
def adjust(source_image_path, target_image_path, | ||
target_image_size=(TARGET_WIDTH_PIXELS, TARGET_HEIGHT_PIXELS)): | ||
print(f"Adjusting {source_image_path} --> {target_image_path}") | ||
print(f"Using target image size {target_image_size}") | ||
with Image.open(source_image_path) as im: | ||
# Scale the image so that it's smaller than the target width and height | ||
source_width, source_height = im.size | ||
scale_factor_height = target_image_size[1] / source_height | ||
scale_factor_width = target_image_size[0] / source_width | ||
scaled_image = ImageOps.scale(im, min(scale_factor_height, | ||
scale_factor_width)) | ||
|
||
# Expand borders with transparency until we get an image of the target | ||
# dimensions. | ||
scaled_width, scaled_height = scaled_image.size | ||
bordered = ImageOps.expand( | ||
scaled_image, | ||
border=(int((target_image_size[0]-scaled_width)/2), | ||
int((target_image_size[1]-scaled_height)/2)), | ||
fill=(0, 0, 0, 0)) | ||
bordered.save(target_image_path) | ||
|
||
print("Complete") | ||
|
||
|
||
if __name__ == '__main__': | ||
adjust(sys.argv[1], sys.argv[2]) |