<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>I like this a lot. We should talk about switching to this at the
      next call (tomorrow). It would be great if you could call in.<br>
    </p>
    <p>--Steve<br>
    </p>
    <div class="moz-cite-prefix">On 2/12/2020 6:37 AM, Ian Hinder wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3D09A989-6640-48ED-A287-CCF242899C3F@manchester.ac.uk">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On 11 Feb 2020, at 16:29, Steven R. Brandt
              &lt;<a href="mailto:sbrandt@cct.lsu.edu" class=""
                moz-do-not-send="true">sbrandt@cct.lsu.edu</a>&gt;
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">
                <p class="">OK, I have this imported from SVN: <a
                    class="moz-txt-link-freetext"
                    href="https://github.com/EinsteinToolkit/cactuscode"
                    moz-do-not-send="true">
                    https://github.com/EinsteinToolkit/cactuscode</a></p>
                <p class="">Some of you already have commit rights on
                  it. I'm happy to have more.</p>
                <p class="">We apparently have a docker image in <a
                    class="moz-txt-link-freetext"
                    href="https://github.com/stevenrbrandt/et-websites"
                    moz-do-not-send="true">
                    https://github.com/stevenrbrandt/et-websites</a>
                  already... and apparently I made it, though I don't
                  remember doing so. Maybe I'm older than I think.</p>
                <p class="">What I need is someone to help with the
                  content.<br class="">
                </p>
              </div>
            </div>
          </blockquote>
        </div>
        <div class="">Hi Steve,</div>
        <div class=""><br class="">
        </div>
        <div class="">Thanks for importing it!  I was just about to
          ask...</div>
        <div class=""><br class="">
        </div>
        <div class="">An alternative to hosting a web server with a
          docker image is to use Github Pages. The site is essentially
          static, and shouldn't need us to maintain a web server.  This
          would remove any dependence on CCT infrastructure apart from
          the domain name, and remove any associated maintenance.</div>
        <div class=""><br class="">
        </div>
        <div class="">I've made a proof-of-principle attempt at this.</div>
        <div class=""><br class="">
        </div>
        <div class="">- Created a gh-pages branch in <a
            class="moz-txt-link-freetext"
            href="https://github.com/EinsteinToolkit/cactuscode"
            moz-do-not-send="true">https://github.com/EinsteinToolkit/cactuscode</a> on
          which to do my testing</div>
        <div class="">- Wrote a script to convert the PHP files to
          markdown; could have kept HTML but I prefer markdown as it
          enforces separation of the content from the presentation and
          is easier to edit</div>
        <div class="">- Ran the script on the current PHP files</div>
        <div class="">- Converted the site to use jekyll for the
          headers, footers, includes, etc</div>
        <div class="">- The site is available at <a
            href="https://einsteintoolkit.github.io/cactuscode.org/"
            class="" moz-do-not-send="true">https://einsteintoolkit.github.io/cactuscode.org/</a>,
          but there are lots of assumptions in the files that it is
          served from "/", whereas here it is served from /<a
            href="http://cactuscode.org" class="" moz-do-not-send="true">cactuscode.org</a>.</div>
        <div class="">- To fix this, rather than editing all the URLs in
          the site, I've instead pointed my own domain to it.</div>
        <div class=""><br class="">
        </div>
        <div class="">You can see the result at <a
            href="http://cactuscode.ianhinder.net" class=""
            moz-do-not-send="true">http://cactuscode.ianhinder.net</a>
          (https will start working in up to 24 hours, apparently).  If
          we want to go ahead with this method, and if you have access
          to the
          <a href="http://cactuscode.org" class=""
            moz-do-not-send="true">cactuscode.org</a> domain, maybe you
          could create a CNAME record pointing</div>
        <div class=""><br class="">
        </div>
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">
          <div class=""><a href="http://test.cactuscode.org" class=""
              moz-do-not-send="true">test.cactuscode.org</a> to
            <a href="http://einsteintoolkit.github.io" class=""
              moz-do-not-send="true">einsteintoolkit.github.io</a></div>
        </div>
      </blockquote>
      <div class="">
        <div class=""><br class="">
        </div>
        <div class="">so we don't have to use my domain?</div>
        <div class=""><br class="">
        </div>
        <div class="">The automated conversion from PHP to markdown
          wasn't perfect; we will need to tidy it up a bit.  But the
          idea now is that you can edit the markdown files, push to the
          repository, and they will automatically appear on the site.
           You can also preview it locally,</div>
        <div class=""><br class="">
        </div>
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">
          <div class=""><span style="font-family: Monaco; font-size:
              10px;" class="">jekyll serve</span></div>
        </div>
      </blockquote>
      <div class="">
        <div class=""><br class="">
        </div>
        <div class=""> if you have jekyll installed, or through docker,
          if you have docker installed:</div>
        <div class=""><br class="">
        </div>
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">
          <div class="">
            <div style="margin: 0px; font-stretch: normal; font-size:
              10px; line-height: normal; font-family: Monaco;" class="">
              <span style="font-variant-ligatures: no-common-ligatures"
                class="">docker run --rm -p 4000:4000
                --volume="$PWD:/srv/jekyll" -it jekyll/jekyll jekyll
                serve</span></div>
          </div>
        </div>
      </blockquote>
      <div class="">
        <div class=""><br class="">
        </div>
        <div class="">Visit <a href="http://localhost:4000" class=""
            moz-do-not-send="true">http://localhost:4000</a> in either
          case to see the site.</div>
        <div class=""><br class="">
        </div>
        <div class="">If this sounds like a good way to go forward, we
          can start working through the files and fixing up the php to
          markdown conversion, deleting old content, etc.</div>
        <br class="">
        <div class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
              rgb(0, 0, 0); letter-spacing: normal; text-align: start;
              text-indent: 0px; text-transform: none; white-space:
              normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; word-wrap: break-word;
              -webkit-nbsp-mode: space; line-break: after-white-space;"
              class="">
              -- <br class="">
              Ian<b class=""><span class="Apple-converted-space"> </span></b>Hinder<br
                class="">
              Research Software Engineer<br class="">
              University of Manchester, UK</div>
          </div>
        </div>
        <br class="">
      </div>
    </blockquote>
  </body>
</html>