Skip to content

Commit

Permalink
change from setup-libs to setup
Browse files Browse the repository at this point in the history
Signed-off-by: leecalcote <[email protected]>
  • Loading branch information
leecalcote committed May 14, 2022
1 parent 93fcede commit e672b78
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Follow the following instructions to start contributing.
**8.** Install the dependencies for running the site.

```
make setup-libs
make setup
```

**9.** Make the desired changes.
Expand Down
26 changes: 25 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
# 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.

setup-libs:
## "DEPRECATED: This target is deprecated. Use `make setup`.

## Install layer5.io dependencies your local machine.
setup:
npm install

## Run layer5.io on your local machine.
site:
npm start

## Run layer5.io on your local machine. Alternate method.
site-fast:
gatsby develop

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

## Emptpy build cache and run layer5.io on your local machine.
clean:
gatsby clean; \
make site
make site

.PHONY: setup build site clean site-fast
5 changes: 5 additions & 0 deletions 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')
2 changes: 1 addition & 1 deletion src/sections/Docker-Meshery/docker-extension-meshery.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const DockerExtensionMeshery = () => {
<StaticImage
src={visual_topology}
alt="Visual Topology"
width={250}
width={150}
objectFit="contain"
/>
</Col>
Expand Down

0 comments on commit e672b78

Please sign in to comment.