forked from fluidattacks/makes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(back): fluidattacks#1223 pure poetry for docs
- Make docs use pure poetry - Centralize job in single makes.nix - Stop deploying latest tag and release - Adapt CI jobs Signed-off-by: Daniel Salazar <[email protected]>
- Loading branch information
Showing
15 changed files
with
811 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# shellcheck shell=bash | ||
|
||
function _deploy { | ||
local env="${1-}" | ||
local domain="makes.fluidattacks.tech" | ||
local cname_path="src/CNAME" | ||
|
||
rm -rf "${cname_path}" | ||
if [ "${env}" == "prod" ]; then | ||
echo "${domain}" > "${cname_path}" | ||
fi | ||
poetry run mkdocs gh-deploy --force --no-history | ||
} | ||
|
||
function _dev { | ||
poetry run mkdocs serve | ||
} | ||
|
||
function main { | ||
local dir="docs" | ||
|
||
pushd "${dir}" || error "${dir} directory not found" | ||
poetry install --no-root | ||
|
||
case "${1:-}" in | ||
deploy) _deploy "${@:2}" ;; | ||
dev) _dev "${@:2}" ;; | ||
*) error "Must provide either 'deploy', 'dev' as the first argument" ;; | ||
esac | ||
} | ||
|
||
main "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ __nixpkgs__, makeScript, ... }: { | ||
jobs."/docs" = makeScript { | ||
name = "docs"; | ||
entrypoint = ./entrypoint.sh; | ||
searchPaths.bin = [ __nixpkgs__.git __nixpkgs__.poetry ]; | ||
}; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
in-project = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tool.poetry] | ||
name = "makes-docs-runtime" | ||
name = "docs" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
|
@@ -14,7 +14,6 @@ requests = "2.32.2" | |
urllib3 = "2.2.2" | ||
certifi = "2024.7.4" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters