Skip to content

Commit dad2029

Browse files
committed
fix: removed commented box-shadow line
Signed-off-by: virat-k82 <viratkumar827921@gmail.com>
1 parent 54d9da0 commit dad2029

605 files changed

Lines changed: 103040 additions & 143160 deletions

File tree

Some content is hidden

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

.github/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ newPRWelcomeComment: >
1515
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
1616
# Comment to be posted to on pull requests merged by a first time user
1717
firstPRMergeComment: >
18-
&nbsp; &#9; &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; Thank you for contributing to the Layer5 community! :tada:
18+
&nbsp; &#9; &nbsp; &#9; &nbsp; &#9; &nbsp; &#9; Thank you for contributing to the Layer5 community! :tada:
1919
\
2020
\
2121
![Congrats!](https://github.com/layer5io/layer5/blob/master/.github/welcome/Layer5-celebration.png)
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Build and Preview Docs
2+
3+
on:
4+
pull_request_target:
5+
branches: [master]
6+
types: [opened, synchronize, reopened, closed]
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: preview-${{ github.event.pull_request.number || github.run_id }}
14+
cancel-in-progress: true
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
20+
jobs:
21+
build-and-deploy-preview:
22+
runs-on: ubuntu-24.04
23+
env:
24+
HUGO_VERSION: 0.158.0
25+
26+
steps:
27+
- name: Checkout PR code
28+
if: github.event.action != 'closed'
29+
uses: actions/checkout@v6
30+
with:
31+
repository: ${{ github.event.pull_request.head.repo.full_name }}
32+
ref: ${{ github.event.pull_request.head.sha }}
33+
persist-credentials: false
34+
submodules: recursive
35+
fetch-depth: 0
36+
37+
- name: Checkout for cleanup
38+
if: github.event.action == 'closed'
39+
uses: actions/checkout@v6
40+
with:
41+
ref: gh-pages
42+
fetch-depth: 0
43+
44+
- name: Install Hugo CLI
45+
if: github.event.action != 'closed'
46+
run: |
47+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
48+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
49+
50+
- name: Install Dart Sass (npm)
51+
if: github.event.action != 'closed'
52+
run: |
53+
npm i -g sass
54+
sass --version
55+
56+
- name: Setup Node
57+
if: github.event.action != 'closed'
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: '20'
61+
62+
- name: Install dependencies
63+
if: github.event.action != 'closed'
64+
run:
65+
'[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci ||
66+
true'
67+
68+
- name: Build PR preview
69+
if: github.event.action != 'closed'
70+
env:
71+
HUGO_PREVIEW: 'true'
72+
run: |
73+
npm run build:preview
74+
cat > public/robots.txt <<'EOF'
75+
User-agent: *
76+
Disallow: /
77+
EOF
78+
79+
- name: Deploy PR preview
80+
if: github.event.action != 'closed'
81+
uses: rossjrw/pr-preview-action@v1.6.3
82+
with:
83+
source-dir: ./public
84+
preview-branch: gh-pages
85+
umbrella-dir: pr-preview
86+
action: auto
87+
comment: false
88+
89+
- name: Comment PR with Preview URL
90+
if: github.event.action != 'closed'
91+
uses: marocchino/sticky-pull-request-comment@v2
92+
with:
93+
header: pr-preview
94+
message: |
95+
🚀 Preview deployment: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.pull_request.number }}/
96+
> *Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment [here](https://github.com/${{ github.repository }}/actions/workflows/pages/pages-build-deployment)*
97+
98+
- name: Cleanup PR preview on close
99+
if: github.event.action == 'closed'
100+
uses: rossjrw/pr-preview-action@v1.6.3
101+
with:
102+
preview-branch: gh-pages
103+
umbrella-dir: pr-preview
104+
action: remove

.github/workflows/hugo.yaml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,67 +12,58 @@ on:
1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
1414

15-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1615
permissions:
17-
contents: read
18-
pages: write
19-
id-token: write
16+
contents: write
2017

2118
concurrency:
22-
group: "pages-deployment"
23-
cancel-in-progress: true # Only latest deployment runs
19+
group: pages-deployment
20+
cancel-in-progress: true
2421

2522
# Default to bash
2623
defaults:
2724
run:
2825
shell: bash
2926

3027
jobs:
31-
# Build job
32-
build:
28+
deploy:
3329
runs-on: ubuntu-24.04
3430
env:
35-
HUGO_VERSION: 0.157.0
31+
HUGO_VERSION: 0.158.0
3632
steps:
3733
- name: Install Hugo CLI
3834
run: |
3935
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4036
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41-
- name: Install Dart Sass
42-
run: sudo snap install dart-sass
37+
- name: Install Dart Sass (npm)
38+
run: |
39+
npm i -g sass
40+
sass --version
4341
- name: Checkout
4442
uses: actions/checkout@v6
4543
with:
4644
submodules: recursive
4745
fetch-depth: 0
48-
- name: Setup Pages
49-
id: pages
50-
uses: actions/configure-pages@v5
46+
- name: Setup Node
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: "20"
5150
- name: Install Node.js dependencies
5251
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5352
- name: Build with Hugo
5453
env:
55-
# For maximum backward compatibility with Hugo modules
5654
HUGO_ENVIRONMENT: production
5755
HUGO_ENV: production
5856
run: |
5957
hugo \
6058
--gc \
6159
--minify \
62-
--baseURL "${{ steps.pages.outputs.base_url }}/"
63-
- name: Upload artifact
64-
uses: actions/upload-pages-artifact@v3
65-
with:
66-
path: ./public
67-
68-
# Deployment job
69-
deploy:
70-
environment:
71-
name: github-pages
72-
url: ${{ steps.deployment.outputs.page_url }}
73-
runs-on: ubuntu-24.04
74-
needs: build
75-
steps:
60+
--baseURL "/"
61+
cp CNAME public/CNAME
62+
touch public/.nojekyll
7663
- name: Deploy to GitHub Pages
77-
id: deployment
78-
uses: actions/deploy-pages@v4
64+
uses: peaceiris/actions-gh-pages@v4
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
publish_dir: ./public
68+
publish_branch: gh-pages
69+
keep_files: true

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public/
2+
resources/
3+
node_modules/
4+
.hugo_build.lock
5+
build/
6+
layouts/
7+
.github/agents/
8+
.github/copilot-instructions.md
9+
assets/json/

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"proseWrap": "always",
3+
"singleQuote": true
4+
}

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# <a name="contributing">Contributing Overview</a>
22
Please do! Thanks for your help improving the project! :balloon:
33

4+
## --> See https://docs.layer5.io/contributing <--
5+
46
All contributors are welcome. Please see the [newcomers welcome guide](https://layer5.io/community/newcomers) for how, where and why to contribute. This project is community-built and welcomes collaboration. Contributors are expected to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md).
57

68
Not sure where to start? First, see the [newcomers welcome guide](https://layer5.io/community/newcomers). Grab an open issue with the [help-wanted label](../../labels/help%20wanted) and jump in. Join the [Slack account](http://slack.layer5.io) and engage in conversation. Create a [new issue](/../../issues/new/choose) if needed. All [pull requests](/../../pulls) should reference an open [issue](/../../issues). Include keywords in your pull request descriptions, as well as commit messages, to [automatically close issues in GitHub](https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords).
79

810
**Sections**
9-
- <a name="contributing">General Contribution Flow</a>
10-
- <a href="#prerequisites">Prerequisites</a>
11-
- <a href="#set-up-your-local-development-environment">Set up your Local Development Environment</a>
12-
- <a href="#commit-signing">Developer Certificate of Origin</a>
11+
<a name="contributing">General Contribution Flow</a>
12+
- <a href="#prerequisites">Prerequisites</a>
13+
- <a href="#set-up-your-local-development-environment">Set up your Local Development Environment</a>
14+
- <a href="#commit-signing">Developer Certificate of Origin</a>
1315

1416
Relevant coding style guidelines are the Go Code Review Comments and the Formatting and style section of Peter Bourgon's Go: Best Practices for Production Environments.
1517

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ setup:
2222
## Run docs.layer5.io on your local machine with draft and future content enabled.
2323
site: check-go
2424
hugo server -D -F
25-
26-
## Run docs.layer5.io on your local machine. Alternate method.
27-
site-fast:
28-
gatsby develop
2925

3026
## Build docs.layer5.io on your local machine.
3127
build:
@@ -36,7 +32,7 @@ clean:
3632
hugo --cleanDestinationDir
3733
make site
3834

39-
.PHONY: setup build site clean site-fast check-go docker
35+
.PHONY: setup build site clean check-go docker
4036

4137
check-go:
4238
@echo "Checking if Go is installed..."
@@ -45,4 +41,8 @@ check-go:
4541

4642
## Build and run docs website within a Docker container
4743
docker:
48-
docker compose watch
44+
docker compose watch
45+
46+
## Format code using Prettier
47+
format:
48+
npm run format

0 commit comments

Comments
 (0)