Skip to content

Commit b20a16d

Browse files
authored
Merge pull request #182 from coder12git/sistent-site-draft
Sistent site draft
2 parents 2a7ef62 + 230bdd0 commit b20a16d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+28723
-0
lines changed

site/.github/Makefile.show-help.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DEFAULT_GOAL := show-help
2+
# See <https://gist.github.com/klmr/575726c7e05d8780505a> for explanation.
3+
.PHONY: show-help
4+
show-help:
5+
@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')

site/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.cache/
3+
public

site/Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright Layer5, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
include .github/Makefile.show-help.mk
16+
17+
## Install docs.layer5.io dependencies your local machine.
18+
## See https://gohugo.io/categories/installation
19+
setup:
20+
npm install
21+
22+
## Run site on your local machine. Alternate method.
23+
site:
24+
gatsby develop
25+
26+
## Build site on your local machine.
27+
build:
28+
gatsby build && gatsby serve
29+
30+
## Empty build cache and run site on your local machine.
31+
clean:
32+
gatsby clean && make site
33+
34+
.PHONY: setup build site clean

site/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## 🚀 Setting up Local Development
2+
3+
1. Navigate to the `site` folder
4+
```
5+
cd site/
6+
```
7+
2. Install dependencies
8+
```
9+
make setup
10+
```
11+
3. To start the development server run
12+
```
13+
make site
14+
```

site/gatsby-browser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "./src/styles/global.css"

site/gatsby-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @type {import('gatsby').GatsbyConfig}
3+
*/
4+
module.exports = {
5+
siteMetadata: {
6+
title: `Sistent Design System | Layer5`,
7+
siteUrl: `https://design.layer5.io`
8+
},
9+
plugins: ["gatsby-plugin-postcss", 'gatsby-plugin-dark-mode']
10+
};

0 commit comments

Comments
 (0)