-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/search-improvements
- Loading branch information
Showing
482 changed files
with
5,057 additions
and
9,274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: lint | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
if: github.event.pull_request.draft == false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
9.x | ||
- name: Run `dotnet format` command | ||
run: | | ||
dotnet restore | ||
dotnet format --no-restore --verify-no-changes | ||
- name: Report failures as Job Summary | ||
if: ${{ failure() }} | ||
shell: pwsh | ||
run: | | ||
$content = ' | ||
## Failed to run the `lint.yml` workflow | ||
To fix workflow errors. Please follow the steps below. | ||
1. Run `dotnet format` command. | ||
2. Commit changes as separated commit. | ||
3. Push changes to source branch of PR. | ||
' | ||
Write-Output $content >> $env:GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,28 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-noble | ||
|
||
# Add dotnet tools to path. | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
|
||
# Set Node.js path | ||
ENV PLAYWRIGHT_NODEJS_PATH="/usr/bin/node" | ||
|
||
# Set target docfx version. | ||
ARG DOCFX_VERSION=2.77.0 | ||
ARG DOCFX_VERSION=2.78.2 | ||
|
||
# Install DocFX as a dotnet tool. | ||
RUN dotnet tool install docfx -g --version ${DOCFX_VERSION} && \ | ||
docfx --version && \ | ||
rm -f /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/docfx.nupkg && \ | ||
rm -f /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/docfx.${DOCFX_VERSION}.nupkg && \ | ||
rm -rf /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net6.0 | ||
|
||
# Install Node.js and dependences for chromium PDF. | ||
RUN apt-get update -qq && \ | ||
apt-get install -y -qq --no-install-recommends \ | ||
nodejs \ | ||
libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \ | ||
libdbus-1-3 libxcb1 libxkbcommon0 libatspi2.0-0 libx11-6 libxcomposite1 libxdamage1 \ | ||
libxext6 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2 && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* | ||
rm -rf /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net9.0 | ||
|
||
# Install Chromium. | ||
RUN PLAYWRIGHT_NODEJS_PATH="/usr/bin/node" && \ | ||
ln -s /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/.playwright /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net8.0/any/.playwright && \ | ||
pwsh -File /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net8.0/any/playwright.ps1 install chromium && \ | ||
unlink /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net8.0/any/.playwright | ||
# Install Node.js and browser(chromium) with dependencies | ||
RUN apt-get install -y -qq --update --no-install-recommends nodejs && \ | ||
pwsh -File /root/.dotnet/tools/.store/docfx/${DOCFX_VERSION}/docfx/${DOCFX_VERSION}/tools/net8.0/any/playwright.ps1 install --with-deps chromium && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* | ||
|
||
WORKDIR /opt/prj | ||
VOLUME [ "/opt/prj" ] | ||
|
||
ENTRYPOINT [ "docfx" ] | ||
ENTRYPOINT [ "docfx" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.