Skip to content

Commit

Permalink
chore: use public repo as upstream docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoFgrx committed Dec 29, 2024
1 parent 9a9f999 commit 0773931
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "v*"
schedule:
- cron: '0 0 * * *' # once a day
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -30,7 +31,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
with:
hugo-version: '0.138.0'
hugo-version: '0.140.0'
extended: true

- name: Setup Node
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/docsy"]
path = themes/docsy
url = https://github.com/google/docsy
[submodule "modules/chall-manager"]
path = modules/chall-manager
url = https://github.com/ctfer-io/chall-manager
11 changes: 11 additions & 0 deletions content/docs/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Docs
menu:
main:
weight: 20
pre: <i class='fa-solid fa-book'></i>
---

{{% alert title="Warning" color="warning" %}}
Currently entering public beta phase, for any issue: [email protected]
{{% /alert %}}
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/ctfer-io/website

go 1.23.2

require github.com/google/docsy v0.11.0 // indirect
require (
github.com/ctfer-io/ctfd-chall-manager v0.1.0 // indirect
github.com/google/docsy v0.11.0 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de h1:JvHOfdSqvArF+7cffH9oWU8oLhn6YFYI60Pms8M/6tI=
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
github.com/ctfer-io/ctfd-chall-manager v0.1.0 h1:9jYvjKCrb87rmCNQjDxT6k9ShB0razHVXDUHcjjop10=
github.com/ctfer-io/ctfd-chall-manager v0.1.0/go.mod h1:mUMMX0YLEtzkBQo4QK+EeJ5PJnaNjgNcV3s8fVZ/9+M=
github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM=
github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
18 changes: 11 additions & 7 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ params:
footer_about_enable: true
navbar_logo: true
navbar_translucent_over_cover_disable: false
sidebar_menu_compact: false
sidebar_search_disable: true
sidebar_menu_foldable: true
feedback:
enable: true
yes: Glad to hear it! Please <a
Expand Down Expand Up @@ -116,14 +116,18 @@ outputs:
- print
- RSS
module:
# replacements: github.com/ctfer-io/ctfer-l3 -> /home/nicolas/5AS10/ctfer-l3
replacements: github.com/ctfer-io/chall-manager -> ../modules/chall-manager # protips: relative from ./themes
hugoVersion:
extended: true
min: 0.110.0
min: 0.140.0
imports:
- path: github.com/google/docsy
disable: false
# - path: github.com/ctfer-io/ctfer-l3
# mounts:
# - source: webdocs
# target: content/docs/ctfer-l3
- path: github.com/ctfer-io/chall-manager
mounts:
- source: webdocs
target: content/docs/chall-manager
- path: github.com/ctfer-io/ctfd-chall-manager
mounts:
- source: webdocs
target: content/docs/ctfd-chall-manager
1 change: 1 addition & 0 deletions modules/chall-manager
Submodule chall-manager added at 40b6d5

0 comments on commit 0773931

Please sign in to comment.