Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ' 0.125.4'
hugo-version: ' 0.148.2'
extended: true
- name: Build
run: chmod +x build-site.sh && ./build-site.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ' 0.125.4'
hugo-version: ' 0.148.2'
extended: true

- name: Setup Node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.125.4'
hugo-version: '0.148.2'
extended: true
- name: Build
run: chmod +x build-site.sh && ./build-site.sh
Expand Down
6 changes: 3 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
tasks:
- name: Install Hugo, init submodules and start website
init: |
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.125.4/hugo_extended_0.125.4_linux-amd64.deb && \
sudo dpkg -i hugo_extended_0.125.4_linux-amd64.deb && \
sudo rm hugo_extended_0.125.4_linux-amd64.deb
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.148.2/hugo_extended_0.148.2_linux-amd64.deb && \
sudo dpkg -i hugo_extended_0.148.2_linux-amd64.deb && \
sudo rm hugo_extended_0.148.2_linux-amd64.deb
command: |
cd website_and_docs
hugo server --baseURL $(gp url 1313) --appendPort=false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This is the repository used to build and publish the official Selenium [website]
We use [Hugo](https://gohugo.io/) and the [Docsy theme](https://www.docsy.dev/)
to build and render the site. You will need the **extended**
Sass/SCSS version of the Hugo binary to work on this site. We recommend
to use **[Hugo 0.125.4](https://github.com/gohugoio/hugo/releases/tag/v0.125.4)**
to use **[Hugo 0.148.2](https://github.com/gohugoio/hugo/releases/tag/v0.148.2)**

Steps needed to have this working locally and work on it:

Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ command = "chmod +x build-site.sh && ./build-site.sh"

[context.production.environment]
NODE_VERSION = "22.13.0"
HUGO_VERSION = "0.125.4"
HUGO_VERSION = "0.148.2"
GO_VERSION = "1.20.1"
HUGO_ENV = "production"

Expand All @@ -13,13 +13,13 @@ command = "chmod +x build-site.sh && ./build-site.sh"

[context.deploy-preview.environment]
NODE_VERSION = "22.13.0"
HUGO_VERSION = "0.125.4"
HUGO_VERSION = "0.148.2"
GO_VERSION = "1.20.1"

[context.branch-deploy]
command = "chmod +x build-site.sh && ./build-site.sh"

[context.branch-deploy.environment]
NODE_VERSION = "22.13.0"
HUGO_VERSION = "0.125.4"
HUGO_VERSION = "0.148.2"
GO_VERSION = "1.20.1"
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ and check out your copy locally.
We use [Hugo](https://gohugo.io/) and the [Docsy theme](https://www.docsy.dev/)
to build and render the site. You will need the “extended”
Sass/SCSS version of the Hugo binary to work on this site. We recommend
to use Hugo 0.125.4 .
to use Hugo 0.148.2 .

Please follow the [Install Hugo](https://www.docsy.dev/docs/getting-started/#install-hugo)
instructions from Docsy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Seleniumプロジェクトは新しいコントリビュータを歓迎します

#### 依存関係: Hugo

[Hugo](https://gohugo.io/)と[Docsyテーマ](https://www.docsy.dev/)を使用してサイトの構築とレンダリングをしています。このサイトの作業をするには、Hugoバイナリの“拡張”Sass/SCSSバージョンが必要です。Hugo 0.125.4の使用を推奨します
[Hugo](https://gohugo.io/)と[Docsyテーマ](https://www.docsy.dev/)を使用してサイトの構築とレンダリングをしています。このサイトの作業をするには、Hugoバイナリの“拡張”Sass/SCSSバージョンが必要です。Hugo 0.148.2の使用を推奨します

[Docsyのインストール手順](https://www.docsy.dev/docs/getting-started/#install-hugo)に従ってください。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ e faça checkout na sua cópia localmente.

Usamos [Hugo](https://gohugo.io/) e [Docsy theme](https://www.docsy.dev/)
para criar e gerar o website. Você vai necessitar de usar a versão "extended"
Sass/SCSS do binário Hugo. Recomendamos a versão 0.125.4 .
Sass/SCSS do binário Hugo. Recomendamos a versão 0.148.2 .

Por favor siga as instruções do Docsy [Install Hugo](https://www.docsy.dev/docs/getting-started/#install-hugo)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Selenium项目欢迎新的贡献者.
我们使用 [Hugo](https://gohugo.io/) 和 [Docsy theme](https://www.docsy.dev/)
用于构建和渲染本网站.
你需要Hugo“extended”扩展的Sass/SCSS版本用于这个网站.
我们推荐使用Hugo 0.125.4 .
我们推荐使用Hugo 0.148.2 .

请参考来自Docsy的说明
[安装Hugo](https://www.docsy.dev/docs/getting-started/#install-hugo) .
Expand Down
2 changes: 1 addition & 1 deletion website_and_docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pygmentsStyle = "tango"

# Configure how URLs look like per section.
[permalinks]
blog = "/:section/:year/:filename/"
blog = "/:section/:year/:contentbasename/"
# blog = "/:section/:year/:month/:day/:slug/"

## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
Expand Down
3 changes: 2 additions & 1 deletion website_and_docs/layouts/partials/previous-releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ <h2 class="modal-title" id="previous-releases-label">Previous Releases</h2>
{{ $toReplace := printf "://%s@" $githubToken }}
{{ $tokenInUrl := cond (eq $githubToken "") "://" $toReplace }}
{{ $urlWithToken := replace $url "://" $tokenInUrl }}
{{ $releases := getJSON $urlWithToken }}
{{ $releasesJson := resources.GetRemote $urlWithToken }}
{{ $releases := $releasesJson | transform.Unmarshal }}
{{ range sort $releases "created_at" "desc" }}
<!-- Expand / Collapse -->
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
Expand Down
4 changes: 3 additions & 1 deletion website_and_docs/layouts/shortcodes/gh-codeblock.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
{{ $tokenInUrl := cond (eq $githubToken "") "://" $toReplace }}
{{ $apiUrlWithToken := replace $apiUrl "://" $tokenInUrl }}

{{ $apiResults := getJSON $apiUrlWithToken }}
{{ $apiResultsJson := resources.GetRemote $apiUrlWithToken }}
{{ $apiResults := $apiResultsJson | transform.Unmarshal }}

{{ $content := base64Decode $apiResults.content }}
{{ $codeSnippet := $content }}

Expand Down
5 changes: 4 additions & 1 deletion website_and_docs/layouts/shortcodes/gh-contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
{{ $tokenInUrl :=cond (eq $githubToken "") "://" $toReplace }}
{{ $url := replace $url "://" $tokenInUrl }}

{{ range getJSON $url }}
{{ $contributorJson := resources.GetRemote $url }}
{{ $contributors := $contributorJson | transform.Unmarshal }}

{{ range $contributors }}
<div style="padding: 10px;">
<img
src="{{.avatar_url}}"
Expand Down
9 changes: 5 additions & 4 deletions website_and_docs/layouts/shortcodes/gh-user.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
{{ $toReplace := printf "://%s@" $githubToken }}
{{ $tokenInUrl :=cond (eq $githubToken "") "://" $toReplace }}
{{ $url := replace $url "://" $tokenInUrl }}
{{ $jsonUrl := getJSON $url }}
{{ $userJson := resources.GetRemote $url }}
{{ $user := $userJson | transform.Unmarshal }}

<div class="card text-center bg-transparent border-0 p-2 h-100" style="max-width: 12rem;">
<img src="{{$jsonUrl.avatar_url}}" class="card-img-top mx-auto" alt="{{$jsonUrl.name}}" style="max-width: 122px;">
<img src="{{$user.avatar_url}}" class="card-img-top mx-auto" alt="{{$user.name}}" style="max-width: 122px;">
<div class="card-body pb-0 px-1">
<p class="card-text m-0">
{{$jsonUrl.name}}
{{$user.name}}
</p>
</div>
<div class="card-footer bg-transparent border-0 px-1">
<p>
<a href="{{$jsonUrl.html_url}}">@{{$jsonUrl.login}}</a>
<a href="{{$user.html_url}}">@{{$user.login}}</a>
</p>
</div>
</div>
Expand Down
Loading