Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata authored Sep 17, 2024
2 parents 1e00a84 + 43216df commit 6555234
Show file tree
Hide file tree
Showing 1,830 changed files with 99,597 additions and 28,707 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ jobs:
node-version: '20'
cache: 'yarn'

- name: Get yarn cache
id: yarn-cache
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-pandev-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pandev-
- name: Cache docusaurus build
uses: actions/cache@v4
with:
path: node_modules/.cache/webpack
key: pandev-live-${{ github.run_id }}
restore-keys: |
pandev-live
- name: Install dependencies
run: yarn --prefer-offline

Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,34 @@ jobs:
node-version: '20'
cache: 'yarn'

- name: Get yarn cache
id: yarn-cache
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-pandev-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pandev-
- name: Cache docusaurus build
uses: actions/cache@v4
with:
path: node_modules/.cache/webpack
key: ${{ runner.os }}-pandev-pr-${{ github.event.number }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pandev-pr-${{ github.event.number }}-
- name: Install dependencies
run: yarn --prefer-offline

- name: Include netsec
if: contains(github.event.pull_request.labels.*.name, 'netsec')
run: |
echo "Including 'netsec' in build..."
echo "PRODUCTS_INCLUDE=cdss,threat-vault,dns-security,iot,expedition,cloudngfw,cdl,panos,terraform,ansible" >> $GITHUB_ENV
echo "PRODUCTS_INCLUDE=cdss,threat-vault,dns-security,iot,expedition,cloudngfw,cdl,panos,terraform,ansible,splunk,aiops-ngfw-bpa,email-dlp,dlp" >> $GITHUB_ENV
- name: Include cloud
if: contains(github.event.pull_request.labels.*.name, 'cloud')
Expand Down
105 changes: 77 additions & 28 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const config = {
favicon: "img/PANW_Parent_Glyph_Red.svg",
organizationName: "PaloAltoNetworks",
projectName: "pan.dev",
markdown: { format: "detect" },
themeConfig: {
prism: {
additionalLanguages: ["csharp", "php", "hcl"],
Expand Down Expand Up @@ -261,7 +262,7 @@ const config = {
],
},
{
label: "Cortex Data Lake",
label: "Strata Logging Service",
to: "#",
logoClass: "panos",
docs: [
Expand Down Expand Up @@ -433,13 +434,13 @@ const config = {
icon: "api-doc",
},
{
to: "access/api/adem/autonomous-dem-api",
label: "Autonomous DEM",
to: "sase/api/mt-interconnect",
label: "Multitenant Interconnect",
icon: "api-doc",
},
{
to: "access/api/insights",
label: "Prisma Access Insights",
to: "access/api/adem/autonomous-dem-api",
label: "Autonomous DEM",
icon: "api-doc",
},
{
Expand Down Expand Up @@ -483,6 +484,11 @@ const config = {
to: "access/docs/insights/getting_started-20",
icon: "doc",
},
{
label: "Get Started 3.0",
to: "access/docs/insights/getting_started-30",
icon: "doc",
},
{
label: "API FAQs",
to: "access/docs/insights/pai-faqs",
Expand All @@ -496,10 +502,15 @@ const config = {
icon: "api-doc",
},
{
to: "access/api/insights",
to: "access/api/insights/2.0",
label: "Prisma Access Insights 2.0",
icon: "api-doc",
},
{
to: "access/api/insights",
label: "Prisma Access Insights 3.0",
icon: "api-doc",
},
],
},
{
Expand Down Expand Up @@ -650,13 +661,19 @@ const config = {
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
},
insights: {
specPath: "openapi-specs/access/insights/2.0",
specPath: "openapi-specs/access/insights/3.0",
outputDir: "products/access/api/insights",
sidebarOptions: { groupPathsBy: "tag" },
version: "2.0",
label: "v2.0",
version: "3.0",
label: "v3.0",
baseUrl: "/access/api/insights/",
versions: {
"2.0": {
specPath: "openapi-specs/access/insights/2.0",
outputDir: "products/access/api/insights/2.0",
label: "v2.0",
baseUrl: "/access/api/insights/2.0",
},
"1.0": {
specPath: "openapi-specs/access/insights/1.0",
outputDir: "products/access/api/insights/1.0",
Expand All @@ -675,6 +692,11 @@ const config = {
outputDir: "products/sase/api/mt-notifications",
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "info" },
},
mtinterconnect: {
specPath: "openapi-specs/sase/mt-interconnect",
outputDir: "products/sase/api/mt-interconnect",
sidebarOptions: { groupPathsBy: "tag" },
},
access: {
specPath: "openapi-specs/access/prisma-access-config",
outputDir: "products/access/api/prisma-access-config",
Expand Down Expand Up @@ -754,6 +776,14 @@ const config = {
outputDir: "products/cdl/api/logforwarding",
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "info" },
},
mssp: {
specPath: "openapi-specs/mssp",
outputDir: "products/prisma-cloud/api/mssp",
showExtensions: true,
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
baseUrl: "/prisma-cloud/api/",
hideSendButton: true,
},
cwpp: {
specPath: "openapi-specs/cwpp",
outputDir: "products/prisma-cloud/api/cwpp",
Expand All @@ -778,33 +808,26 @@ const config = {
specPath: "openapi-specs/compute",
outputDir: "products/compute/api",
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
version: "32.06",
label: "v32.06",
version: "33.00",
label: "v33.00",
showExtensions: true,
hideSendButton: true,
baseUrl: "/compute/api/",
versions: {
32.07: {
specPath: "openapi-specs/compute/32-07",
outputDir: "products/compute/api/32-07",
label: "v32.07",
baseUrl: "/compute/api/32-07/",
},
31.02: {
specPath: "openapi-specs/compute/31-02",
outputDir: "products/compute/api/31-02",
label: "v31.02",
baseUrl: "/compute/api/31-02/",
},
30.03: {
specPath: "openapi-specs/compute/30-03",
outputDir: "products/compute/api/30-03",
label: "v30.03",
baseUrl: "/compute/api/30-03/",
},
},
},
compute_3202: {
specPath: "openapi-specs/compute/32-02",
outputDir: "products/compute/api/32-02",
showExtensions: true,
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
baseUrl: "/compute/api/32-02/",
},
compute_3203: {
specPath: "openapi-specs/compute/32-03",
outputDir: "products/compute/api/32-03",
Expand All @@ -826,6 +849,20 @@ const config = {
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
baseUrl: "/compute/api/32-05/",
},
compute_3206: {
specPath: "openapi-specs/compute/32-06",
outputDir: "products/compute/api/32-06",
showExtensions: true,
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
baseUrl: "/compute/api/32-06/",
},
compute_3207: {
specPath: "openapi-specs/compute/32-07",
outputDir: "products/compute/api/32-07",
showExtensions: true,
sidebarOptions: { groupPathsBy: "tag", categoryLinkSource: "tag" },
baseUrl: "/compute/api/32-07/",
},
},
},
],
Expand Down Expand Up @@ -861,11 +898,23 @@ const config = {
trailingSlash: true,
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve("esbuild-loader"),
loader: require.resolve("swc-loader"),
options: {
loader: "tsx",
format: isServer ? "cjs" : undefined,
target: isServer ? "node12" : "es2017",
jsc: {
parser: {
syntax: "typescript",
tsx: true,
},
target: "es2019",
transform: {
react: {
runtime: "automatic",
},
},
},
module: {
type: isServer ? "commonjs" : "es6",
},
},
}),
},
Expand Down
Loading

0 comments on commit 6555234

Please sign in to comment.