Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
15da28f
feat: updated rendering method of YAML managed reference
Povindu Sep 10, 2025
10d23da
fix: minor styling and functional fixes in YAML managed references
Povindu Sep 11, 2025
d2e845d
feat: remove YAML managed references content collections
Povindu Sep 11, 2025
8fd66db
cicd: updated workflow to only trigger manually for PR's
Povindu Sep 11, 2025
f0c09e2
fix: setup yamlslug to run only on apiOnly step
Povindu Sep 11, 2025
e1c2c0c
fix: added conditional check for href
Povindu Sep 11, 2025
3a1b1b1
Update azure pipelines - setup build job
Povindu Sep 15, 2025
f02ecf3
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
34f6fbc
test: disable redirect-from plugin
Povindu Sep 15, 2025
e105139
Merge branch 'feat/povindu/update-yaml-rendering' of https://github.c…
Povindu Sep 15, 2025
e1fe679
fix: updated error logging in YamlLayoutPage
Povindu Sep 15, 2025
d9da6f0
temp: temporarily reduce rendering content
Povindu Sep 15, 2025
abe1035
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
ce2801f
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
85be9f8
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
1551446
Revert "temp: temporarily reduce rendering content"
Povindu Sep 15, 2025
3611f8a
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
49367e5
Revert "temp: temporarily reduce rendering content"
Povindu Sep 15, 2025
9b2da7c
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
6e2091b
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
0910d4c
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 15, 2025
7490869
Merge branch 'feat/povindu/update-yaml-rendering' of https://github.c…
Povindu Sep 15, 2025
20a6f07
Update azure-pipelines-docs-next.yml for Azure Pipelines
Povindu Sep 16, 2025
2840ae8
Update build agent in azure pipeline
Povindu Sep 16, 2025
5ec1249
Update build agent azure pipelines
Povindu Sep 16, 2025
52d9187
add Bicep template
malithap Sep 16, 2025
a072364
add Bicep template
malithap Sep 16, 2025
eb9e462
Merge branch 'feat/malitha/add-bicep-template' of https://github.com/…
Povindu Sep 16, 2025
d2b505e
cicd: updated environment in deploy templete
Povindu Sep 16, 2025
6161d20
cicd: fix an invalid path in pipeline and commented helloworld.cs
Povindu Sep 16, 2025
a6d95ff
temp: remove content temporarily
Povindu Sep 16, 2025
a043a89
cicd: updated azure pipeline repo cloning path
Povindu Sep 16, 2025
c7e6acf
fix: ignore cs files in ClientApp
Povindu Sep 16, 2025
b83e647
feat: updated gitignore
Povindu Sep 16, 2025
1745637
update name of the bicep templates
malithap Sep 16, 2025
8fed9ba
fix merge conflicts
malithap Sep 16, 2025
c355d74
Merge branch 'feat/malitha/add-bicep-template' of https://github.com/…
Povindu Sep 16, 2025
9bed2ce
chore: remove acciedentally commited obj folder
Povindu Sep 17, 2025
813d216
chore: updated gitignore
Povindu Sep 17, 2025
a05ca65
fix: updated csproj to ignore files from ClientApp when building .net…
Povindu Sep 17, 2025
07373b3
Update azure-pipelines.yml for Azure Pipelines
Povindu Sep 17, 2025
7789ece
Add azureResourceManagerConnection in pipeline yml
malithap Sep 17, 2025
5c8215c
Add SuperOfficeDocs.prod.parameters.json
malithap Sep 17, 2025
deca626
cicd: update bicep templete powershell script name
Povindu Sep 17, 2025
0ebefce
cicd: updated powershell for testing
Povindu Sep 17, 2025
35778df
Fix error deploy powershell script
malithap Sep 17, 2025
8a163f8
Fix error deploy powershell script
malithap Sep 17, 2025
b020832
Merge branch 'feat/malitha/add-bicep-template' of https://github.com/…
Povindu Sep 17, 2025
31d3a08
Fix error deploy powershell script
malithap Sep 17, 2025
5fa458d
fix merge conflict
malithap Sep 17, 2025
5026458
add DOTNET_VERSION for deployment
malithap Sep 17, 2025
4d9592f
Revert "temp: remove content temporarily"
Povindu Sep 18, 2025
6afd338
chore: moved common/icons to src/assets
Povindu Sep 19, 2025
669c9d2
fix: load img in CategoryLandingLayout from assets folder
Povindu Sep 19, 2025
1d636f6
chore: reduce rendered files for testing
Povindu Sep 19, 2025
f4c6ef5
fix: added conditional check to src in CategoryLandingLayout
Povindu Sep 19, 2025
b0fbd2c
cicd: updated envirnment sod to dev
Povindu Sep 19, 2025
e6b5540
feat: updated TOC component logic to handle slug from href
Povindu Sep 19, 2025
f28995c
Revert "chore: reduce rendered files for testing"
Povindu Sep 19, 2025
efcf6d5
Merge branch 'main' into feat/malitha/add-bicep-template
Povindu Sep 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/main_docs-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
permissions:
id-token: write
contents: read
Expand Down
38 changes: 20 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@
# build output
out

ClientApp/dist/
Source/SuperOffice.DocsNext/ClientApp/dist/

ClientApp/.distA/
ClientApp/.distB/
Source/SuperOffice.DocsNext/ClientApp/.distA/
Source/SuperOffice.DocsNext/ClientApp/.distB/


# generated types
ClientApp/.astro/
Source/SuperOffice.DocsNext/ClientApp/.astro/

# dependencies
ClientApp/node_modules/
Source/SuperOffice.DocsNext/ClientApp/node_modules/

# Build Log
ClientApp/build.log
Source/SuperOffice.DocsNext/ClientApp/build.log


# .NET
Server/bin/
Server/obj/
Server/wwwroot/
Server/publish/
Source/SuperOffice.DocsNext/bin/
Source/SuperOffice.DocsNext/obj/
Source/SuperOffice.DocsNext.BicepTemplate/obj/
Source/SuperOffice.DocsNext.BicepTemplate/bin/
Source/SuperOffice.DocsNext/wwwroot/
Source/SuperOffice.DocsNext/publish/


# logs
Expand All @@ -35,8 +37,8 @@ pnpm-debug.log*


# environment variables
ClientApp/.env
ClientApp/.env.production
Source/SuperOffice.DocsNext/ClientApp/.env
Source/SuperOffice.DocsNext/ClientApp/.env.production

# macOS-specific files
.DS_Store
Expand All @@ -48,12 +50,12 @@ ClientApp/.env.production
.vscode/settings.json

# Playwright
ClientApp/e2e-tests/test-results/
ClientApp/e2e-tests/playwright-report/
ClientApp/e2e-tests/blob-report/
ClientApp/e2e-tests/playwright/.cache/
Source/SuperOffice.DocsNext/ClientApp/e2e-tests/test-results/
Source/SuperOffice.DocsNext/ClientApp/e2e-tests/playwright-report/
Source/SuperOffice.DocsNext/ClientApp/e2e-tests/blob-report/
Source/SuperOffice.DocsNext/ClientApp/e2e-tests/playwright/.cache/

# External content (other GitHub repos)

ClientApp/external-content/
ClientApp/public/downloads/
Source/SuperOffice.DocsNext/ClientApp/external-content/
Source/SuperOffice.DocsNext/ClientApp/public/downloads/

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions ClientApp/src/pages/en/api/reference/web/[...slug].astro

This file was deleted.

28 changes: 0 additions & 28 deletions ClientApp/src/pages/en/api/reference/webapi/[...slug].astro

This file was deleted.

4 changes: 0 additions & 4 deletions ClientApp/src/reuse/code/hello-world.cs

This file was deleted.

25 changes: 24 additions & 1 deletion Docs-Next-Solution.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{7E46C9BE-8B62-41C2-938E-36BF1703453E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperOffice.DocsNext", "Source\SuperOffice.DocsNext\SuperOffice.DocsNext.csproj", "{7E46C9BE-8B62-41C2-938E-36BF1703453E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperOffice.DocsNext.BicepTemplate", "Source\SuperOffice.DocsNext.BicepTemplate\SuperOffice.DocsNext.BicepTemplate.csproj", "{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
ProjectSection(SolutionItems) = preProject
build\azure-pipelines.yml = build\azure-pipelines.yml
build\deploy-env.template.yml = build\deploy-env.template.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -27,8 +35,23 @@ Global
{7E46C9BE-8B62-41C2-938E-36BF1703453E}.Release|x64.Build.0 = Release|Any CPU
{7E46C9BE-8B62-41C2-938E-36BF1703453E}.Release|x86.ActiveCfg = Release|Any CPU
{7E46C9BE-8B62-41C2-938E-36BF1703453E}.Release|x86.Build.0 = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|x64.ActiveCfg = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|x64.Build.0 = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|x86.ActiveCfg = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Debug|x86.Build.0 = Debug|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|Any CPU.Build.0 = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|x64.ActiveCfg = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|x64.Build.0 = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|x86.ActiveCfg = Release|Any CPU
{5BBFC193-83FB-42D6-A6DD-A6C0D0F83A0C}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {949BA74E-D973-483D-BD02-D77D1CA99CF2}
EndGlobalSection
EndGlobal
61 changes: 61 additions & 0 deletions Source/SuperOffice.DocsNext.BicepTemplate/Deploy.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Param(
[string] $Environment = 'dev',
[int] [Parameter(Mandatory = $true)]$DotNetVersion,
[switch] $ValidateOnly
)

Write-Output '', 'Start Deploy-DocsNext'

try {
[Microsoft.Azure.Common.Authentication.AzureSession]::ClientFactory.AddUserAgent("VSAzureTools-$UI$($host.name)".replace(' ', '_'), '3.0.0')
}
catch { }

$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 3

function Format-ValidationOutput {
param ($ValidationOutput, [int] $Depth = 0)
Set-StrictMode -Off
return @($ValidationOutput | Where-Object { $_ -ne $null } | ForEach-Object { @(' ' * $Depth + ': ' + $_.Message) + @(Format-ValidationOutput @($_.Details) ($Depth + 1)) })
}

$ResourceGroupLocation = 'Norway East'
$ResourceGroupName = "rg-SuperOfficeDocs-$($Environment)"
$TemplateFile = 'SuperOfficeDocs.bicep'


$TemplateFile = [System.IO.Path]::GetFullPath([System.IO.Path]::Combine($PSScriptRoot, $TemplateFile))

# Create the resource group only when it doesn't already exist
if ($null -eq (Get-AzResourceGroup -Name $ResourceGroupName -Location $ResourceGroupLocation -Verbose -ErrorAction SilentlyContinue)) {
New-AzResourceGroup -Name $ResourceGroupName -Location $ResourceGroupLocation -Verbose -Force -ErrorAction Stop
}

if ($ValidateOnly) {
$ErrorMessages = Format-ValidationOutput (Test-AzResourceGroupDeployment -ResourceGroupName $ResourceGroupName `
-TemplateFile $TemplateFile `
@OptionalParameters)
if ($ErrorMessages) {
Write-Output '', 'Validation returned the following errors:', @($ErrorMessages), '', 'Template is invalid.'
[Environment]::Exit(1)
}
Write-Output '', 'Template is valid.'
Exit 0
}

$outputs = New-AzResourceGroupDeployment -Name ((Get-ChildItem $TemplateFile).BaseName + '-' + ((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm')) `
-ResourceGroupName $ResourceGroupName `
-TemplateFile $TemplateFile `
-environment $Environment `
-dotNetVersion $DotNetVersion `
-Force -Verbose `
-ErrorVariable ErrorMessages
if ($ErrorMessages) {
Write-Output '', 'Template deployment returned the following errors:', @(@($ErrorMessages) | ForEach-Object { $_.Exception.Message.TrimEnd("`r`n") })
[Environment]::Exit(1)
}

$WebAppName = $outputs.Outputs['webAppName'].value

Write-Host "##vso[task.setvariable variable=WebAppName;isOutput=true]$WebAppName"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
58 changes: 58 additions & 0 deletions Source/SuperOffice.DocsNext.BicepTemplate/SuperOfficeDocs.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
param location string = resourceGroup().location
@allowed([
'dev'
'stage'
'prod'
])
param environment string
param dotNetVersion int
param appHostingPlan string = 'B1'
var webAppHostingPlanName = 'plan-superoffice-docs-${environment}'
var webAppName = 'app-superoffice-docs-${environment}'


resource webAppHostingPlan 'Microsoft.Web/serverfarms@2024-11-01' = {
name: webAppHostingPlanName
location: location
tags: {
displayName: 'Web App Hosting Plan'
}
sku: {
name: appHostingPlan
}
kind: 'linux'
properties: {
reserved: true
}
}

resource webApp 'Microsoft.Web/sites@2024-11-01' = {
name: webAppName
location: location
tags: {
'hidden-related:${resourceGroup().id}/providers/Microsoft.Web/serverfarms/${webAppHostingPlanName}': 'Resource'
displayName: '${webAppName} Web App'
}
kind: 'app,linux'
properties: {
serverFarmId: webAppHostingPlan.id
httpsOnly: true
siteConfig: {
linuxFxVersion: 'DOTNETCORE|${dotNetVersion}.0'
}
}
identity: {
type: 'SystemAssigned'
}
}

resource webAppSettings 'Microsoft.Web/sites/config@2024-11-01' = {
parent: webApp
name: 'appsettings'
properties: {
WEBSITES_PORT: '8080'
WEBSITE_RUN_FROM_PACKAGE: '1'
}
}

output webAppName string = webAppName
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ export default defineConfig({
mdx(),
// pagefind(),
react(),
redirectFrom({
contentDir: './external-content',
getSlug: getRedirectFromSlug, // Function to get the slug for redirect_from
}),
// redirectFrom({
// contentDir: './external-content',
// getSlug: getRedirectFromSlug, // Function to get the slug for redirect_from
// }),
robots(), sitemap(),
],

Expand Down
Loading
Loading