Satellite State of Play - a strategy document on satellite imagery
This site was created from the viewpoint of the development community, but offers a general overview of current market dynamics. This knowledge product is an adaption of a World Bank Group Knowledge Product See original version, licensed under Creative Commons Attribution License.
All code is MIT licensed, and the text content is CC-BY. Please feel free to send edits and updates via Pull Requests.
You can access text files in app/content
. All files should be in github-flavored markdown. To add a new section, create a new markdown file in app/content
and add a corresponding build script in app/app.html
.
For example, to create a file on market opportunities, add a file called app/content/opportunities.md
. Then modify app/app.html
with the following code at the location where your copy should go.
<!-- build:opportunities -->
<!-- endbuild -->
Note: the filename (minus .md
) should be what comes after build:
.
To set up the development environment for this website, you'll need to install the following on your system:
- Node and npm
- Gulp ( $ npm install -g gulp )
After these basic requirements are met, run the following commands in the website's folder:
$ npm install
There are two commands, both run via npm.
npm run build
orgulp build
orgulp
- clean & build everything and put it into dist foldernpm run serve
orgulp serve
- serve the pages and utilize live reload on changes to styles, fonts, images, scripts and HTML.
should be in github-flavored markdown.
app/assets/
|
+- scripts/: The user scripts
| |
| +- config/: configuration files (see configuration section)
|
+- styles/: The sass styles
|
+- vendor/: Any third-party script that can't be required()
|
+- graphics/: Images for the site divided in:
| |
| +- layout/: Images for layout elements (Ex: background images)
| +- meta/: Images for the meta tags (Mostly icons and facebook images)
| +- content/: Content image
|
The script build, which uses browserify
, outputs two js files: bundle.js
and
vendor.js
:
bundle.js
, created by thejavascript
task in deployment and bywatchify
during development, contains all the app-specific code:app/scripts/main.js
and all the scripts itrequire
s that are local to this app.vendor.js
, created by thevendorBundle
task, contains all the external dependencies of the app: namely, all the packages you install usingnpm install --save ...
.
The .travis.yml file enables the usage of Travis as a test and deployment system. In this particular case, Travis will be looking for any changes to the repo and when a change is made to the master
branch, Travis will build the project and deploy it to the gh-pages
branch.
We're using semistandard for linting.
npm run lint
- will run linter and warn of any errors.
There are linting plugins for popular editors listed in the semistandard repo.