-
Notifications
You must be signed in to change notification settings - Fork 345
717 - Update config files for k8s #863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR and it reminds me of the early days of me trying to get the ECE docs to build properly as part of our doc builds. 😁 This needs to build at least one branch that exists in the K8s repo though, so I'll mark this as Request changes for now. Also, does the new build alias work locally?
You should be able to test the
It will take a long, long time. First it has to |
Oh! You'll probably want to use your local checkout of cloud:
|
conf.yaml
Outdated
subject: k8s | ||
current: 2.2 | ||
branches: [ ] | ||
index: docs/k8s/index.asciidoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this PR intends to build the quick start out of the K8s repo, but https://github.com/elastic/cloud/pull/32248 targets the Cloud repo. (https://github.com/elastic/cloud/pull/32248 needs to be replaced by a new PR that targets the K8s repo.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with #781.
branches: [ master ] | ||
index: docs/index.asciidoc | ||
chunk: 1 | ||
public: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you build it with Asciidoctor with asciidoctor: true
? I figure we should try and get all the new things on Asciidoctor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where exactly do I need to add asciidoctor: true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you replace this line with asciidoctor: true
then it'll build with asciidoctor. public: 1
doesn't look like it does anything.
doc_build_aliases.sh
Outdated
@@ -67,6 +67,8 @@ alias docbldec='$GIT_HOME/docs/build_docs --doc $GIT_HOME/cloud/docs/saas/index. | |||
|
|||
alias docbldece='$GIT_HOME/docs/build_docs --doc $GIT_HOME/cloud/docs/cloud-enterprise/index.asciidoc --resource=$GIT_HOME/cloud/docs/shared --chunk 1' | |||
|
|||
alias docbldk8s='$GIT_HOME/docs/build_docs --doc $GIT_HOME/cloud-on-k8s/docs/index.asciidoc --resource $GIT_HOME/cloud/docs/shared --chunk 1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add --asciidoctor
to build it with asciidoctor? I figure we should build all of the new things with Asciidoctor. If it doesn't work I'd be happy to help to get it working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do I need to add --asciidoctor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add it right after build_docs
then it'll line up with the other lines in this file. But anywhere in the line is actually fine.
I tried to build locally by running this command: But it doesn't seem to work: Ariannas-MacBook-Pro:docs|k8s-book$ ./build_docs --all --target_repo [email protected]:elastic/build-docs.git --open --sub_dir cloud-on-k8s:website-docs:../docs |
Question for @nrichers and @nik9000: From which branch do I have to run the command? |
@alaudazzi and I chatted and the command in the aliases file works now. |
FYI When I build ALL the docs, it returns the following broken links: I've created a PR to fix those broken links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and builds successfully. Broken links are all resolved now.
A big THANK YOU to all of you for the great support you provided! |
conf.yaml
Outdated
@@ -525,6 +526,21 @@ contents: | |||
path: docs/shared | |||
exclude_branches: [ 1.0 ] | |||
|
|||
- | |||
title: Elastic Cloud on Kubernetes | |||
prefix: en/k8s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this prefix match the repo name? cloud-on-k8s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Changed the prefix from k8s to cloud-on-kubernetes as per pbrc request
changed the prefix into "cloud-on-k8s"
* 717 - Update config files for k8s * Integrate nrichers comments * Update doc build script * Rectified path to index.asciidoc * Adds URL for cloud-on-k8s * Update config files to get one single page * Update conf.yaml * Update conf.yaml * Update conf.yaml * Update conf.yaml * Update conf.yaml Changed the prefix from k8s to cloud-on-kubernetes as per pbrc request * Update conf.yaml changed the prefix into "cloud-on-k8s"
Needed for #717
Blocked by #32248
Description
Documentation
@pebrc