agrc / gis.utah.gov

The official UGRC website
https://gis.utah.gov
MIT License
25 stars 40 forks source link
astro geodatabase gis government government-data government-organisations html markdown netlify open-data shapefile tailwindcss utah website

gis.utah.gov

This is the repository for the UGRC agency website.

Static Badge Website GitHub License
GitHub Issues or Pull Requests GitHub Issues or Pull Requests GitHub commit activity (branch)
Netlify Status W3C Validation Mozilla HTTP Observatory Grade

Read about our new website. Contribute content or typos. License: MIT.

Local Development

Prerequisites

Steps

  1. Clone this repository git clone https://github.com/agrc/gis.utah.gov.git
  2. Install the dependencies npm install
  3. Start the website npm start
  4. browse to localhost:4321

Technology reference

Syntax conventions

_italic_
**bold**
_**bold italic**_

- list
---
import BulletedList from '@components/page/BulletedList.astro';
import NumberedList from '@components/page/NumberedList.astro';
import DefinitionListItem from '@components/page/DefinitionListItem.astro';
---

<em>italic</em> or <span class="italic">italic</span>
<strong>bold</strong> or <span class="font-bold">bold</span>
<strong><em>bold and italic</em></strong> or <span class="italic font-bold">bold and italic</span>

<BulletedList>
  <li>list item</li>
</BulletedList>

<NumberedList>
  <li>list item</li>
</NumberedList>

<dl>
  <DefinitionListItem title="Word">Definition</DefinitionListItem>
</dl>

link to page

link to blog post

external link

image link to an image

images

font matter

contact information

[!IMPORTANT] Please do not put email addresses directly into content.

Contacts are managed in a typescript file.

SGID Index Validation

The data that powers the SGID Index search page comes from a Google Sheet. Fresh data is scraped from the sheet each time the website is built in Netlify.

The data is validated using a NodeJS script which is scheduled to run nightly via GitHub Actions. If there are validation errors, the script opens a new GitHub issue with a comment displaying the errors. If there is an existing issue already open, the output comment is updated. If there are no errors, the issue will be closed. The validation script can also be triggered manually by adding a new issue comment that begins with the following text: /validate-sgid-index.

Rows that have indexStatus set to removed or draft are skipped.

The validation scripts performs the following checks: