hugo
No long description provided.
Installation
dagger install github.com/stuttgart-things/dagger/hugo@v0.12.0
Entrypoint
Return Type
Hugo
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
func (m *MyModule) Example() *dagger.Hugo {
return dag.
Hugo()
}
@function
def example() -> dagger.Hugo:
return (
dag.hugo()
)
@func()
example(): Hugo {
return dag
.hugo()
}
Types
Hugo 🔗
baseImage() 🔗
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
base-image
func (m *MyModule) Example(ctx context.Context) string {
return dag.
Hugo().
BaseImage(ctx)
}
@function
async def example() -> str:
return await (
dag.hugo()
.base_image()
)
@func()
async example(): Promise<string> {
return dag
.hugo()
.baseImage()
}
serve() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
config | File ! | - | No description provided |
content | Directory ! | - | No description provided |
name | String | "hugo" | The project name |
baseUrl | String | "0.0.0.0" | The base url to use |
port | String | "1313" | The Port to use |
theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
serve --config file:path --content DIR_PATH
func (m *MyModule) Example(config *dagger.File, content *dagger.Directory) *dagger.Service {
return dag.
Hugo().
Serve(config, content)
}
@function
def example(config: dagger.File, content: dagger.Directory) -> dagger.Service:
return (
dag.hugo()
.serve(config, content)
)
@func()
example(config: File, content: Directory): Service {
return dag
.hugo()
.serve(config, content)
}
exportStaticContent() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
siteDir | Directory ! | - | No description provided |
theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
export-static-content --site-dir DIR_PATH
func (m *MyModule) Example(siteDir *dagger.Directory) *dagger.Directory {
return dag.
Hugo().
ExportStaticContent(siteDir)
}
@function
def example(site_dir: dagger.Directory) -> dagger.Directory:
return (
dag.hugo()
.export_static_content(site_dir)
)
@func()
example(siteDir: Directory): Directory {
return dag
.hugo()
.exportStaticContent(siteDir)
}
buildAndExport() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
config | File ! | - | No description provided |
content | Directory ! | - | No description provided |
theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
build-and-export --name string --config file:path --content DIR_PATH
func (m *MyModule) Example(name string, config *dagger.File, content *dagger.Directory) *dagger.Directory {
return dag.
Hugo().
BuildAndExport(name, config, content)
}
@function
def example(name: str, config: dagger.File, content: dagger.Directory) -> dagger.Directory:
return (
dag.hugo()
.build_and_export(name, config, content)
)
@func()
example(name: string, config: File, content: Directory): Directory {
return dag
.hugo()
.buildAndExport(name, config, content)
}
buildSyncExport() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
config | File ! | - | No description provided |
content | Directory ! | - | No description provided |
theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
endpoint | String ! | - | No description provided |
accessKey | Secret ! | - | No description provided |
secretKey | Secret ! | - | No description provided |
bucketName | String ! | - | No description provided |
aliasName | String ! | - | No description provided |
insecure | Boolean ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
build-sync-export --name string --config file:path --content DIR_PATH --endpoint string --access-key env:MYSECRET --secret-key env:MYSECRET --bucket-name string --alias-name string --insecure boolean
func (m *MyModule) Example(name string, config *dagger.File, content *dagger.Directory, endpoint string, accessKey *dagger.Secret, secretKey *dagger.Secret, bucketName string, aliasName string, insecure bool) *dagger.Directory {
return dag.
Hugo().
BuildSyncExport(name, config, content, endpoint, accessKey, secretKey, bucketName, aliasName, insecure)
}
@function
def example(name: str, config: dagger.File, content: dagger.Directory, endpoint: str, access_key: dagger.Secret, secret_key: dagger.Secret, bucket_name: str, alias_name: str, insecure: bool) -> dagger.Directory:
return (
dag.hugo()
.build_sync_export(name, config, content, endpoint, access_key, secret_key, bucket_name, alias_name, insecure)
)
@func()
example(name: string, config: File, content: Directory, endpoint: string, accessKey: Secret, secretKey: Secret, bucketName: string, aliasName: string, insecure: boolean): Directory {
return dag
.hugo()
.buildSyncExport(name, config, content, endpoint, accessKey, secretKey, bucketName, aliasName, insecure)
}
syncMinioBucket() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
endpoint | String ! | - | No description provided |
accessKey | Secret ! | - | No description provided |
secretKey | Secret ! | - | No description provided |
bucketName | String ! | - | No description provided |
aliasName | String ! | - | No description provided |
insecure | Boolean ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
sync-minio-bucket --endpoint string --access-key env:MYSECRET --secret-key env:MYSECRET --bucket-name string --alias-name string --insecure boolean
func (m *MyModule) Example(endpoint string, accessKey *dagger.Secret, secretKey *dagger.Secret, bucketName string, aliasName string, insecure bool) *dagger.Directory {
return dag.
Hugo().
SyncMinioBucket(endpoint, accessKey, secretKey, bucketName, aliasName, insecure)
}
@function
def example(endpoint: str, access_key: dagger.Secret, secret_key: dagger.Secret, bucket_name: str, alias_name: str, insecure: bool) -> dagger.Directory:
return (
dag.hugo()
.sync_minio_bucket(endpoint, access_key, secret_key, bucket_name, alias_name, insecure)
)
@func()
example(endpoint: string, accessKey: Secret, secretKey: Secret, bucketName: string, aliasName: string, insecure: boolean): Directory {
return dag
.hugo()
.syncMinioBucket(endpoint, accessKey, secretKey, bucketName, aliasName, insecure)
}
initSite() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
config | File ! | - | No description provided |
content | Directory ! | - | No description provided |
theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
Example
dagger -m github.com/stuttgart-things/dagger/hugo@c59fc8d78eed1d717a5cd26a015200e0e19e31e5 call \
init-site --name string --config file:path --content DIR_PATH
func (m *MyModule) Example(name string, config *dagger.File, content *dagger.Directory) *dagger.Directory {
return dag.
Hugo().
InitSite(name, config, content)
}
@function
def example(name: str, config: dagger.File, content: dagger.Directory) -> dagger.Directory:
return (
dag.hugo()
.init_site(name, config, content)
)
@func()
example(name: string, config: File, content: Directory): Directory {
return dag
.hugo()
.initSite(name, config, content)
}