Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sistent site draft #182

Merged
merged 14 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions site/.github/Makefile.show-help.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DEFAULT_GOAL := show-help
# See <https://gist.github.com/klmr/575726c7e05d8780505a> for explanation.
.PHONY: show-help
show-help:
@echo "$$(tput bold)Please specify a build target. The choices are:$$(tput sgr0)";echo;sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## //;td" -e"s/:.*//;G;s/\\n## /---/;s/\\n/ /g;p;}" ${MAKEFILE_LIST}|LC_ALL='C' sort -f|awk -F --- -v n=$$(tput cols) -v i=19 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"%s%*s%s ",a,-i,$$1,z;m=split($$2,w," ");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;printf"\n%*s ",-i," ";}printf"%s ",w[j];}printf"\n";}'|more $(shell test $(shell uname) == Darwin && echo '-Xr')
3 changes: 3 additions & 0 deletions site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.cache/
public
34 changes: 34 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright Layer5, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include .github/Makefile.show-help.mk
coder12git marked this conversation as resolved.
Show resolved Hide resolved

## Install docs.layer5.io dependencies your local machine.
## See https://gohugo.io/categories/installation
setup:
npm install

## Run site on your local machine. Alternate method.
site:
gatsby develop

## Build site on your local machine.
build:
gatsby build && gatsby serve

## Empty build cache and run site on your local machine.
clean:
gatsby clean && make site

.PHONY: setup build site clean
14 changes: 14 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## 🚀 Setting up Local Development
coder12git marked this conversation as resolved.
Show resolved Hide resolved

1. Navigate to the `site` folder
```
cd site/
```
2. Install dependencies
```
make setup
```
3. To start the development server run
```
make site
```
1 change: 1 addition & 0 deletions site/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./src/styles/global.css"
10 changes: 10 additions & 0 deletions site/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: `Sistent Design System | Layer5`,
siteUrl: `https://design.layer5.io`
},
plugins: ["gatsby-plugin-postcss"]
};