Open iansk opened 1 year ago
Re-opening this issue. I've found other instances where the include::
macro still isn't being processed properly.
See the following links. This isn't a comprehensive list, it's just what I spot checked:
agentless-scanning/onboard-accounts/onboard-azure
at the bottom of the page.onboard-accounts/frag_start-agentless-scan.adoc
at the bottom of the pagefrag_start-agentless-scan.adoc
at the bottom of the pagefragments/install_defender_twistcli_export_oc_4.adoc
fragments/create-waas-rule.adoc
and fragments/add-app-policy.adoc
since the HTML format changed on the worker to make the include fragments, those docs were broken until republish
just republished all, seems to be working now
@maxakuru This still isn't completely working. This page still has the issue:
@maxakuru Also, quick question: What's the best way to force a republish on all content?
@iansk I republished all, seems to be working now.. could you take another look?
by design we don't have a convenient button to republish all docs, since we want to be selective for performance... however there is a script in the prisma-cloud-docs
repo that can be used for batch publishing:
# publish one
npm run publish:batch docs/en/compute/pcee/admin-guide/waas/deploy-waas/deployment-hosts
# publish all in specific folder
npm run publish:batch docs/en/compute/pcee/admin-guide/waas/deploy-waas/fragments/**/*
# publish all (takes ~30 mins)
npm run publish:batch docs/**/*
@maxakuru Awesome, that's good stuff. Thanks for providing the script
@maxakuru I'm still seeing issues with this. If I grep through the doc content for include::
, and check each page, I'm finding issues with virtually every page.
As an example, these pages still show the issue. I'm not sure if was previously fixed, and now showing up again. But currently, the latest published content shows the issue:
agentless-scanning/onboard-accounts/onboard-azure
at the bottom of the page.onboard-accounts/frag_start-agentless-scan.adoc
at the bottom of the pagefrag_start-agentless-scan.adoc
at the bottom of the pagefragments/install_defender_twistcli_export_oc_4.adoc
@iansk these are because we changed the rules for document naming to normalize paths, but didn't change the content of the documents to correctly reference those new names.
frag_start-agentless-scan
install_defender_twistcli_export_oc_4
for each of these we just need to replace the _
with -
.. does that help?
@maxakuru Yes, that helps, thanks. I updated the underscore to a dash, but it's still not working completely working for me. Also, I now see some HTML code being rendered on the page.
Franklin preview:
GitHub pull request:
https://github.com/hlxsites/prisma-cloud-docs/pull/69
BTW, our embedded Gdocs stopped working since you merged some recent fixes. I see the same weird HTML code on the page, so it may be related to this issue.
@iansk yep my bad, I forgot to merge a fix for a typo yesterday, fix was merged in https://github.com/hlxsites/prisma-cloud-docs/pull/70
@maxakuru Thanks, the gdocs are loading again now. But the include::
macro still isn't working:
I tried republishing the page, but nothing changed.
When I inspect the element on the page, I see it's rendered (incorrectly) as a link:
<div>
<a href="https://main--prisma-cloud-docs-website--hlxsites.hlx.page/prisma/prisma-cloud/docs/en/compute/pcee/admin-guide/agentless-scanning/onboard-accounts/frag-start-agentless-scan?branch=ian%2Ffix-include" title="frag-start-agentless-scan.adoc">frag-start-agentless-scan.adoc</a>
</div>
looks like this was an error during fragment loading that only occurred when the branch query param was set
should be fixed in #142, could you try again @iansk
@maxakuru I'm still not seeing include::
content being loaded.
Example pages:
@iansk looking at logs and I see [worker] book is undefined, path resolution may fail
for these
also on main
I don't see a 30-xx folder: https://github.com/hlxsites/prisma-cloud-docs/tree/main/docs/en/compute-edition
remember that the book.yml
needs to exist on main
before the pages will work
AsciiDoc has a macro that lets you pull in adoc content from other files. The
include::
macro isn't working on our Franklin pages. See the official documentation forinclude::
here.This page shows the issue (scroll to the bottom of the page):
Link: Onboard Accounts for Agentless Scanning
Relevant underlying doc source:
Screenshot: