Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8433844
chore(website): add prettier formatting
thomasqueirozb Jan 7, 2026
bc9fedc
Add .prettierignore and use double quotes
thomasqueirozb Jan 7, 2026
a758ca3
Set semi: true
thomasqueirozb Jan 7, 2026
7a6c22f
Set trailingComma to es5
thomasqueirozb Jan 7, 2026
76cb08f
Format scripts
thomasqueirozb Jan 7, 2026
c06229c
Format config files
thomasqueirozb Jan 7, 2026
c1200ac
Format some files properly
thomasqueirozb Jan 7, 2026
e6b27cc
Format baseof and blog-post-card
thomasqueirozb Jan 7, 2026
42212c8
Add properly formatted files
thomasqueirozb Jan 7, 2026
0b423a5
Manually fix formatting in community.html
thomasqueirozb Jan 7, 2026
e88dd5e
Manually format layouts/partials/banner.html
thomasqueirozb Jan 7, 2026
c7d164e
Add automatically formatted files
thomasqueirozb Jan 7, 2026
fca69c2
Add correctly formatted shortcodes/cli/commands.html
thomasqueirozb Jan 7, 2026
fc95898
Add automatically formatted files
thomasqueirozb Jan 7, 2026
714829c
Allow whitespace inside <a> to make tag format nicer
thomasqueirozb Jan 7, 2026
6e8a4b7
Add automatically formatted files
thomasqueirozb Jan 7, 2026
43db56e
Use htmlWhitespaceSensitivity strict
thomasqueirozb Jan 8, 2026
d4032fc
Add automatically formatted files
thomasqueirozb Jan 8, 2026
ea3e8bd
Remove unused interface shortcode
thomasqueirozb Jan 8, 2026
0d1bfe9
Remove unused section-pages-list.html
thomasqueirozb Jan 8, 2026
5b188a5
remove unused guides/integrate/hero.html
thomasqueirozb Jan 8, 2026
14d5871
Remove unused community/hero.html
thomasqueirozb Jan 8, 2026
6c11c73
Manually format navbar to preserve classes
thomasqueirozb Jan 8, 2026
9731d59
Add automatically formatted social-buttons
thomasqueirozb Jan 8, 2026
a95c3d7
Add CI format check
thomasqueirozb Jan 8, 2026
60da28b
Add missing newline to navbar
thomasqueirozb Jan 8, 2026
eb363de
Remove files from .prettierignore
thomasqueirozb Jan 8, 2026
eb213f7
Format layouts/partials/blog/content.html
thomasqueirozb Jan 8, 2026
13f3048
Format layouts/partials/content.html
thomasqueirozb Jan 8, 2026
b767ab8
Remove extra closing span
thomasqueirozb Jan 8, 2026
6dcfffd
Format layouts/releases/li.html
thomasqueirozb Jan 8, 2026
723bdee
Fix {{ end }} location
thomasqueirozb Jan 8, 2026
e38d74a
Format layouts/releases/single.html
thomasqueirozb Jan 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ on:
value: ${{ jobs.source.outputs.markdown }}
scripts:
value: ${{ jobs.source.outputs.scripts }}
website:
value: ${{ jobs.source.outputs.website }}
website_only:
value: ${{ jobs.source.outputs.website_only }}
install:
Expand Down Expand Up @@ -172,6 +174,7 @@ jobs:
scripts: ${{ steps.filter.outputs.scripts }}
install: ${{ steps.filter.outputs.install }}
k8s: ${{ steps.filter.outputs.k8s }}
website: ${{ steps.filter.outputs.website }}
website_only: ${{ steps.filter.outputs.website == 'true' && steps.filter.outputs.not_website == 'false' }}
test-yml: ${{ steps.filter.outputs.test-yml }}
integration-yml: ${{ steps.filter.outputs.integration-yml }}
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,23 @@ jobs:
rustup target add wasm32-unknown-unknown
wasm-pack build --target web --out-dir public/pkg

check-website-fmt:
name: Check Website Formatting
runs-on: ubuntu-24.04
if: ${{ needs.changes.outputs.website == 'true' || needs.changes.outputs.test-yml == 'true' }}
needs: changes
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: 'website/yarn.lock'
- name: Install dependencies
run: cd website && yarn install --frozen-lockfile
- name: Check formatting
run: cd website && make format-check

all-checks:
name: Test Suite
runs-on: ubuntu-24.04
Expand All @@ -221,6 +238,7 @@ jobs:
- check-rust-docs
- test-vrl
- build-vrl-playground
- check-website-fmt
steps:
- name: Check all jobs status
run: |
Expand Down
16 changes: 8 additions & 8 deletions website/.htmltest.external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ CheckExternal: true
IgnoreAltMissing: true
IgnoreEmptyHref: true
IgnoreURLs:
# We have to ignore this due to rate limiting
- "github.com"
- "packages.timber.io"
- "localhost"
# Somehow this link allows shows up as broken, so we'll exclude it
- "https://www.microsoft.com/en-us/windows"
# Somehow these links always come up as 5xx even though they work fine in the browser
- "maxmind.com"
# We have to ignore this due to rate limiting
- "github.com"
- "packages.timber.io"
- "localhost"
# Somehow this link allows shows up as broken, so we'll exclude it
- "https://www.microsoft.com/en-us/windows"
# Somehow these links always come up as 5xx even though they work fine in the browser
- "maxmind.com"
31 changes: 31 additions & 0 deletions website/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Dependencies
node_modules/

# Hugo-generated assets
public/
resources/
hugo_stats.json
assets/jsconfig.json

# Assets generated by the Makefile
data/cargo-lock.toml
data/docs.json

# Temporary files
tmp/

# Reports
reports/

# JavaScript files with Go template syntax (Hugo processes these)
assets/js/

# HTML files that prettier-plugin-go-template cannot parse
layouts/_default/index.json.json
layouts/_default/_markup/render-heading.html

layouts/partials/badge.html
layouts/partials/docs/sidebar.html
layouts/partials/heading.html

*.md
9 changes: 5 additions & 4 deletions website/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
{
"files": ["*.html"],
"options": {
"parser": "go-template"
"parser": "go-template",
"htmlWhitespaceSensitivity": "strict"
}
}
],
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 120
}
12 changes: 12 additions & 0 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,15 @@ local-preview-build: clean setup cargo-data structured-data preview-build run-li
# Generate Lighthouse scores locally
lighthouse-report:
yarn lighthouse

# Format all files with Prettier
format:
yarn format

# Check formatting without making changes
format-check:
yarn format:check

# Format only HTML template files
format-html:
yarn format:html
33 changes: 5 additions & 28 deletions website/algolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,24 @@
"minWordSizefor2Typos": 8,
"hitsPerPage": 10,
"maxValuesPerFacet": 100,
"searchableAttributes": [
"title",
"content",
"unordered(hierarchy)",
"unordered(tags)"
],
"searchableAttributes": ["title", "content", "unordered(hierarchy)", "unordered(tags)"],
"numericAttributesToIndex": null,
"attributesToRetrieve": null,
"unretrievableAttributes": null,
"optionalWords": null,
"attributesForFaceting": null,
"attributesToSnippet": [
"title:10",
"content:10"
],
"attributesToSnippet": ["title:10", "content:10"],
"attributesToHighlight": null,
"paginationLimitedTo": 1000,
"attributeForDistinct": null,
"exactOnSingleWordQuery": "attribute",
"ranking": [
"typo",
"geo",
"words",
"filters",
"proximity",
"attribute",
"exact",
"custom"
],
"customRanking": [
"desc(level)",
"desc(ranking)"
],
"ranking": ["typo", "geo", "words", "filters", "proximity", "attribute", "exact", "custom"],
"customRanking": ["desc(level)", "desc(ranking)"],
"separatorsToIndex": "",
"removeWordsIfNoResults": "none",
"queryType": "prefixLast",
"highlightPreTag": "<em>",
"highlightPostTag": "</em>",
"snippetEllipsisText": "…",
"alternativesAsExact": [
"ignorePlurals",
"singleWordSynonym"
]
"alternativesAsExact": ["ignorePlurals", "singleWordSynonym"]
}
27 changes: 9 additions & 18 deletions website/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ a[type="button"] {

/* Algolia search */
:root {
--docsearch-key-shadow: inset 0 -2px 0 0 rgb(205, 205, 230),
inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, 0.4);
--docsearch-key-shadow:
inset 0 -2px 0 0 rgb(205, 205, 230), inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, 0.4);
}

.aa-DetachedFormContainer,
Expand Down Expand Up @@ -149,10 +149,7 @@ a[type="button"] {
}

.aa-DetachedContainer .aa-DetachedFormContainer {
background: rgba(
var(--aa-background-color-rgb),
var(--aa-background-color-alpha)
);
background: rgba(var(--aa-background-color-rgb), var(--aa-background-color-alpha));
padding: calc(var(--aa-spacing-half) * 1.5);
}

Expand Down Expand Up @@ -239,10 +236,7 @@ a[type="button"] {
font-size: 0.85em;
border-width: 1px;
border-style: solid;
border-color: rgba(
var(--aa-panel-border-color-rgb),
var(--aa-panel-border-color-alpha)
);
border-color: rgba(var(--aa-panel-border-color-rgb), var(--aa-panel-border-color-alpha));
border-radius: 3px;
}

Expand All @@ -254,7 +248,9 @@ a[type="button"] {

.aa-Footer {
padding: 15px;
box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgba(69, 98, 155, 0.12);
box-shadow:
0 -1px 0 0 #e0e3e8,
0 -3px 6px 0 rgba(69, 98, 155, 0.12);
}

@media screen and (max-width: 679px) {
Expand All @@ -263,13 +259,8 @@ a[type="button"] {
}
}

[data-autocomplete-source-id="suggestions"]
.aa-Item[aria-selected="true"]
.aa-QuerySuggestion {
background: rgba(
var(--aa-selected-color-rgb),
var(--aa-selected-color-alpha)
);
[data-autocomplete-source-id="suggestions"] .aa-Item[aria-selected="true"] .aa-QuerySuggestion {
background: rgba(var(--aa-selected-color-rgb), var(--aa-selected-color-alpha));
border-color: transparent;
}

Expand Down
28 changes: 14 additions & 14 deletions website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import presetEnv from '@babel/preset-env';
import presetReact from '@babel/preset-react';
import presetTypeScript from '@babel/preset-typescript';
import presetEnv from "@babel/preset-env";
import presetReact from "@babel/preset-react";
import presetTypeScript from "@babel/preset-typescript";

export default function (api) {
api.cache(true);
Expand All @@ -9,30 +9,30 @@ export default function (api) {
[
presetEnv,
{
"useBuiltIns": 'entry',
"corejs": 3
}
useBuiltIns: "entry",
corejs: 3,
},
],
[
presetReact,
{
"flow": false,
"typescript": true
}
flow: false,
typescript: true,
},
],
[
presetTypeScript,
{
"isTSX": true,
"allExtensions": true
}
]
isTSX: true,
allExtensions: true,
},
],
];

const plugins = [];

return {
presets,
plugins
plugins,
};
}
Loading
Loading