You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there!
We're trying to use structor in order to add versioning to Kubernetes/kops docs site (https://kops.sigs.k8s.io).
For that, I've downloaded the file and ran it as following:
2020/06/09 22:53:56 Run Structor command with config : &{Owner:kubernetes RepositoryName:kops Debug:true DockerfileURL:https://raw.githubusercontent.com/kubernetes/kops/master/images/mkdocs/Dockerfile DockerfileName:docs.Dockerfile ExperimentalBranchName:master ExcludedBranches:[] DockerImageName:doc-site Menu:0xc00006eac0 RequirementsURL:https://raw.githubusercontent.com/kubernetes/kops/master/images/mkdocs/requirements.txt NoCache:false ForceEditionURI:false}
2020/06/09 22:53:56 Temp directory: /tmp/structor663483782
2020/06/09 22:53:56 Latest tag: v1.17.0
2020/06/09 22:53:56 git branch --remotes --list origin\/v*
2020/06/09 22:53:56 Generating doc for version master
2020/06/09 22:53:56 git worktree add /tmp/structor663483782/master origin/master
2020/06/09 22:53:59 Found mkdocs.yml for building documentation in /tmp/structor663483782/master.
2020/06/09 22:53:59 git worktree prune
Error: stat /tmp/structor663483782/master/requirements.txt: no such file or directory
Usage:
structor [flags]
structor [command]
Available Commands:
help Help about any command
version Display version
Flags:
--debug Debug mode.
--dockerfile-name string Search and use this Dockerfile in the repository (in './docs/' or in './') for building documentation. (default "docs.Dockerfile")
-d, --dockerfile-url string Use this Dockerfile when --dockerfile-name is not found. Can be a file path. [required]
--exclude strings Exclude branches from the documentation generation.
--exp-branch string Build a branch as experimental.
--force-edit-url Add a dedicated edition URL for each version.
-h, --help help for structor
--image-name string Docker image name. (default "doc-site")
--menu.css-file string File path of the template of the CSS file use for the multi version menu.
--menu.css-url string URL of the template of the CSS file use for the multi version menu.
--menu.js-file string File path of the template of the JS file use for the multi version menu.
--menu.js-url string URL of the template of the JS file use for the multi version menu.
--no-cache Set to 'true' to disable the Docker build cache.
-o, --owner string Repository owner. [required]
-r, --repo-name string Repository name. [required]
--rqts-url string Use this requirements.txt to merge with the current requirements.txt. Can be a file path.
--version version for structor
Use "structor [command] --help" for more information about a command.
stat /tmp/structor663483782/master/requirements.txt: no such file or directory
It seems like even though I used --rqts-url and pointed it to the path of our mkdocs image, it still tries to locate it in the root of the repo and fails.
Is there any option to override that requirement?
Thanks much!
The text was updated successfully, but these errors were encountered:
Thanks @ldez !
Would it make sense to change the "hard" requirement for the basic file and just make sure that all the necessary modules exist in the one provided through --rqts-url?
Hey there!
We're trying to use
structor
in order to add versioning to Kubernetes/kops docs site (https://kops.sigs.k8s.io).For that, I've downloaded the file and ran it as following:
$ sudo ./structor -o kubernetes -r kops --dockerfile-url=https://raw.githubusercontent.com/kubernetes/kops/master/images/mkdocs/Dockerfile --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --rqts-url=https://raw.githubusercontent.com/kubernetes/kops/master/images/mkdocs/requirements.txt --exp-branch=master --debug
However, it failed with the following output:
It seems like even though I used
--rqts-url
and pointed it to the path of ourmkdocs
image, it still tries to locate it in the root of the repo and fails.Is there any option to override that requirement?
Thanks much!
The text was updated successfully, but these errors were encountered: