Skip to content

Design-Tools

When designing Astro sites there is the ability to edit the source files using VS Code. We can dovetail directly into GitHub, so that the local pages can be made available offline.

Mostly though, I prefer to manage source content files in the Obsidian workspace. As the files are directly linked to text files (in markdown md format) on your hard drive, these can easily be uploaded to your GitHub repository (repo) via GitHub Commands such as git add, git commit and git push.

We use GitHub’s central repository as our versioning environment and as a carrier for the N&P website. GitHub is our online holding storage area, which we can then pipe out to various different static site generators (SSG), like Retype/GitHub Pages, Flowershow/Vercel and Astro/GitHub Pages or Astro/Netlify.

When using various git commands to interrogate the online GitHub repo, you will be required to add a deploy key to lock down the connection between your local machine and GitHub.

This is done in three steps:

  • create your SSH key via a git command.
  • authenticate the created SSH key, also by git command.
  • add the SSH key phrase, into the Repo > Settings > Deploy section.

Refer to the SSH Keys page for more.

Retype is a SSG is run on the local machine to generate content which is uploaded to a GitHub repo. Relatively straight forward to execute. Refer Retype Workflow page.

Astro is another SSG run on the local machine, which can generate output to several template styles upon project creation (via the command line). Despite some nice looking published files, setting up the environment can be daunting at first, but with familiarity and understanding its quirks (Node JS compatibility especially), this has a lot of flexibility in the design phase. Perhaps too much flexibility. Refer Astro Workflow page.

In future, I plan to push client sites through to Netlify using an Astro project engine. Astro itself is quite a complex framework, so I will test a few Astro builds in GitHub Pages first before venturing out to Netlify, and also eventually Vercel.

I have an account set up in Vercel to handle any publishing requests going through that platform. I have one live website going through them at the moment this site, but not much else. I need to study up on their various tools to take advantage of them more.

If you have multiple devices and/or use different operating systems across network (Windows, Mac, Android, iPhone, Linux, RaspberryPi etc), you can use a free app called Syncthing to replicate your data among them. This is to mitigate data loss on a single device which could be a single point of failure. Another suggestion is to copy your web page data onto a Server for safe keeping, or onto a portable USB thumb drive.

Syncthing points to your source folder on your source device. On another target device where you have Syncthing installed, run it, the folders from your source device will be detected, now just add them to sync up. Refer our Syncthing page.