This is the source code for my Gatsby
powered static website https://estebantorr.es
The Gatsby
tool is wrapped in a Rakefile
.
To see all the list of tasks available run:
bundle exec rake --tasks
Or in case you didn't install the gems using bundler
:
rake --tasks
Task | Description |
---|---|
rake build | # Build site locally |
rake build:test | # Builds, then tests |
rake clean | # Cleans the locally generated pages |
rake config:bootstrap | # Initial setup |
rake config:environment | # Configures the variables and «seds» the modules |
rake deploy:production | # Deployment to production |
rake deploy:travis | # Deploy if Travis environment variables are set correctly |
rake publish:production | # Build and deploy to production |
rake server | # Start gatsby server |
rake test | # Runs html-proofer against current build directory (./public) |
I mostly followed the blogpost Migrating My Blog From Hexo To Gatsby from Ian Sinnott since the previous incarnation of my blog was written using Hexo
.
I also wanted to get rid of Disqus
for comments and wanted to migrate them to Github
for quite a while now.
For that I followed this blogpost Using GitHub Issues for Blog Comments from Orta Therox and also grabbed bits of inspiration (and some code) from Pedro's Blog (here's his repository).
The MIT License (MIT)
Copyright (c) 2014 Michael Rose
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)
Copyright (c) 2015 gatsbyjs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.