...
This commit is contained in:
@@ -205,8 +205,7 @@ pub fn create_heroscript(args ModuleMeta) ! {
|
||||
'1'
|
||||
} else {
|
||||
'0'
|
||||
}
|
||||
}"
|
||||
}}"
|
||||
}
|
||||
if !os.exists(args.path) {
|
||||
os.mkdir(args.path)!
|
||||
|
||||
@@ -57,7 +57,6 @@ pub fn run(args_ PlayArgs) ! {
|
||||
// Website / docs
|
||||
site.play(mut plbook)!
|
||||
|
||||
|
||||
incatokens.play(mut plbook)!
|
||||
atlas.play(mut plbook)!
|
||||
docusaurus.play(mut plbook)!
|
||||
|
||||
@@ -25,6 +25,8 @@ import incubaid.herolib.installers.infra.coredns
|
||||
import incubaid.herolib.installers.infra.gitea
|
||||
import incubaid.herolib.installers.infra.livekit
|
||||
import incubaid.herolib.installers.infra.zinit_installer
|
||||
import incubaid.herolib.installers.k8s.cryptpad
|
||||
import incubaid.herolib.installers.k8s.element_chat
|
||||
import incubaid.herolib.installers.lang.golang
|
||||
import incubaid.herolib.installers.lang.nodejs
|
||||
import incubaid.herolib.installers.lang.python
|
||||
@@ -37,7 +39,9 @@ import incubaid.herolib.installers.threefold.griddriver
|
||||
import incubaid.herolib.installers.virt.cloudhypervisor
|
||||
import incubaid.herolib.installers.virt.docker
|
||||
import incubaid.herolib.installers.virt.herorunner
|
||||
import incubaid.herolib.installers.virt.kubernetes_installer
|
||||
import incubaid.herolib.installers.virt.lima
|
||||
import incubaid.herolib.installers.virt.myhypervisor
|
||||
import incubaid.herolib.installers.virt.pacman
|
||||
import incubaid.herolib.installers.virt.podman
|
||||
import incubaid.herolib.installers.virt.youki
|
||||
@@ -80,6 +84,8 @@ pub fn run_all(args_ PlayArgs) ! {
|
||||
gitea.play(mut plbook)!
|
||||
livekit.play(mut plbook)!
|
||||
zinit_installer.play(mut plbook)!
|
||||
cryptpad.play(mut plbook)!
|
||||
element_chat.play(mut plbook)!
|
||||
golang.play(mut plbook)!
|
||||
nodejs.play(mut plbook)!
|
||||
python.play(mut plbook)!
|
||||
@@ -92,7 +98,9 @@ pub fn run_all(args_ PlayArgs) ! {
|
||||
cloudhypervisor.play(mut plbook)!
|
||||
docker.play(mut plbook)!
|
||||
herorunner.play(mut plbook)!
|
||||
kubernetes_installer.play(mut plbook)!
|
||||
lima.play(mut plbook)!
|
||||
myhypervisor.play(mut plbook)!
|
||||
pacman.play(mut plbook)!
|
||||
podman.play(mut plbook)!
|
||||
youki.play(mut plbook)!
|
||||
|
||||
@@ -313,7 +313,7 @@ pub fn (mut c AtlasClient) copy_files(collection_name string, page_name string,
|
||||
}
|
||||
if link.status == .external {
|
||||
continue
|
||||
}
|
||||
}
|
||||
// println(link)
|
||||
// Get file path and copy
|
||||
file_path := c.get_file_path(link.target_collection_name, link.target_item_name)!
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
module atlas
|
||||
|
||||
pub struct CollectionNotFound {
|
||||
Error
|
||||
Error
|
||||
pub:
|
||||
name string
|
||||
msg string
|
||||
name string
|
||||
msg string
|
||||
}
|
||||
|
||||
pub fn (err CollectionNotFound) msg() string {
|
||||
return 'Collection ${err.name} not found: ${err.msg}'
|
||||
return 'Collection ${err.name} not found: ${err.msg}'
|
||||
}
|
||||
|
||||
pub struct PageNotFound {
|
||||
Error
|
||||
Error
|
||||
pub:
|
||||
collection string
|
||||
page string
|
||||
collection string
|
||||
page string
|
||||
}
|
||||
|
||||
pub fn (err PageNotFound) msg() string {
|
||||
return 'Page ${err.page} not found in collection ${err.collection}'
|
||||
return 'Page ${err.page} not found in collection ${err.collection}'
|
||||
}
|
||||
|
||||
pub struct FileNotFound {
|
||||
Error
|
||||
Error
|
||||
pub:
|
||||
collection string
|
||||
file string
|
||||
collection string
|
||||
file string
|
||||
}
|
||||
|
||||
pub fn (err FileNotFound) msg() string {
|
||||
return 'File ${err.file} not found in collection ${err.collection}'
|
||||
}
|
||||
return 'File ${err.file} not found in collection ${err.collection}'
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ pub mut:
|
||||
template_update bool
|
||||
coderoot string
|
||||
// Client configuration
|
||||
use_atlas bool // true = atlas_client, false = doctreeclient
|
||||
atlas_dir string // Required when use_atlas = true
|
||||
use_atlas bool // true = atlas_client, false = doctreeclient
|
||||
atlas_dir string // Required when use_atlas = true
|
||||
}
|
||||
|
||||
@[params]
|
||||
@@ -32,8 +32,8 @@ pub mut:
|
||||
template_update bool
|
||||
coderoot string
|
||||
// Client configuration
|
||||
use_atlas bool // true = atlas_client, false = doctreeclient
|
||||
atlas_dir string // Required when use_atlas = true
|
||||
use_atlas bool // true = atlas_client, false = doctreeclient
|
||||
atlas_dir string // Required when use_atlas = true
|
||||
}
|
||||
|
||||
// return the last know config
|
||||
|
||||
@@ -2,15 +2,15 @@ module site
|
||||
|
||||
pub struct Page {
|
||||
pub mut:
|
||||
name string
|
||||
title string
|
||||
description string
|
||||
draft bool
|
||||
position int
|
||||
hide_title bool
|
||||
src string @[required] // always in format collection:page_name, can use the default collection if no : specified
|
||||
path string @[required] //is without the page name, so just the path to the folder where the page is in
|
||||
name string
|
||||
title string
|
||||
description string
|
||||
draft bool
|
||||
position int
|
||||
hide_title bool
|
||||
src string @[required] // always in format collection:page_name, can use the default collection if no : specified
|
||||
path string @[required] // is without the page name, so just the path to the folder where the page is in
|
||||
section_name string
|
||||
title_nr int
|
||||
slug string
|
||||
title_nr int
|
||||
slug string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user