-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Remote login #298
Remote login #298
Conversation
Add to concepts, shorten on training example, add see-also shortcode to relevant pages
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've made a few comments. Also the link checker seems to be failing but I can't tell whether that's due to your changes or not.
@mrjones-plip Any tips?
Oh, this is interesting! This is the error (for posterity): All Branches - Run Muffet link checker
GOROOT: /opt/hostedtoolcache/go/1.14.7/x64
Run ./.github/scripts/muffet.sh
./.github/scripts/muffet.sh
shell: /bin/bash --noprofile --norc -e -o pipefail {0}
env:
GOROOT: /opt/hostedtoolcache/go/1.14.7/x64
dial tcp4 127.0.0.1:1313: connect: connection refused
##[error]Process completed with exit code 1. so that smells like GH Actions thought it started the instance via |
What in the world!? Indeed, I was right that I happened to be watching and saw the failures in the build, which you can see when you expand the step: So there's three bad links on
If you fix those three, hugo should be able to start in GH Actions and link checker should run OK. But hrm - why isn't this being caught locally? Maybe the doc writers This is a bug in the GH Action - it should fail on the "All Branches - Serve Hugo site" step but isn't, so it's a false positive that it's failing on the next step, " All Branches - Run Muffet link checker". If I can reproduce, I'll file a bug to fix this. Thanks for calling this out! |
Ah, ok! sorry to be so chatty on this ticket, but indeed the build is failing locally. This is good! Now we just need to get GH actions to do the same thing @n-orlowski be sure your build is working before you commit/push. This is what I'm seeing locally, let me know if it's not failing for you! ➜ cht-docs git:(remote-login-updates) ../hugo server
Building sites … ERROR 2020/09/01 16:12:08 [see-also] REF_NOT_FOUND: Ref "apps/concepts/access/#remote-login": "apps/examples/training.md": page not found
ERROR 2020/09/01 16:12:08 [see-also] REF_NOT_FOUND: Ref "apps/examples/training/": "apps/concepts/access.md": page not found
ERROR 2020/09/01 16:12:09 [see-also] REF_NOT_FOUND: Ref "apps/concepts/access/#remote-login": "apps/reference/api.md": page not found
Built in 776 ms
Error: Error building site: logged 3 error(s) |
@mrjones-plip thanks for looking into this! Seems to work now that I've removed the "See also" shortcodes.. |
Is the process to add the |
@n-orlowski - sweet! To be clear, this is because, for example,
So feel free to add them back in if you want (at least this one, I didn't check the other two). Aaaaandd - when I was testing this, I saw that when I was running |
@mrjones-plip Ahhhh I see!! Thanks for clarifying, I'll add them back. Tbh Hugo has been barfing for a while for me and I've sort of blacked out so I'm not 100% sure but I think that is what happened 😅 |
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.
It looks like the content/en/apps/examples/training/admin-magic-link.png
image is not used anywhere - can we just delete it now?
@n-orlowski - yeah, glad that was helpful! I'm also happy debug your local hugo branch for a 100% less barfing if you need any help. If hugo isn't happy locally, you'll push, wait for GH Actions to run, it will fail your build and you'll have to rinse and repeat until it succeeds to build. This is a pain! |
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.
Awesome!
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.
Add to concepts, shorten on training example, add see-also shortcode to relevant pages