Install WYSIWYG HTML editor¶ ↑
KompoZer from www.nvu.com/
…and create yourself a website that appeases your creative side
Get a GitHub account¶ ↑
Install Git (if it's not already on your computer)¶ ↑
Create a GitHub project and clone it locally prior to uploading your website¶ ↑
(help.github.com/categories/github-pages-basics/)
help.github.com/articles/creating-project-pages-manually/
Local git commands after cloning the project + creating an 'orphan' branch¶ ↑
-
Copy the directory (incl subdirectories) created by the WYSIWYG editor
(If the website created by the website design software is not saved in the cloned project directory, which would be easier)
-
$ git add –all;
-
$ git commit;
-
$ git push;
Get a domain for your site¶ ↑
www.mtgsy.net/ OR aws.amazon.com/route53/
Compare prices but Amazon is probably better
Configure your chosen DNS host to point your domain name to the GitHub page¶ ↑
help.github.com/articles/setting-up-a-custom-domain-with-github-pages/
Google Analytics¶ ↑
$ which rdoc
/Users/doug/.rvm/gems/ruby-2.2.2/bin/rdoc
$ rdoc –version
4.2.2
~/generator/template/darkfish/_head.rhtml¶ ↑
~/.rvm/gems/ruby-2.2.2/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish$ vi _head.rhtml
<% if @options.g_a then %> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-83416778-1', 'auto'); ga('send', 'pageview'); </script> <% end %>
options.rb¶ ↑
~/.rvm/gems/ruby-2.2.2/gems/rdoc-4.2.2/lib/rdoc$ vi options.rb
1 ———————————————————————————————
... attr_accessor :template_stylesheets # 31/8/16 DH: Adding command-line opt to add Google Analytics to output attr_accessor :g_a
2 ———————————————————————————————
... @write_options = false # 31/8/16 DH: Adding Google Analytics command line option @g_a = false
3 ——————————————————————————————–
def parse argv ... opts = OptionParser.new do |opt| ... # 31/8/16 DH: Adding Google Analytics command-line option opt.on("-ga", "Add Google Analytics to output.") do |value| @g_a = true end opt.separator nil end ... end