Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ This folder is reserved for local-only AI working material such as:
- design alternatives
- temporary agent state

Keep this folder out of source control. Move only finalized, non-confidential guidance into `AGENTS.md` or `.github/copilot-instructions.md`.
Keep this folder out of source control. Move only finalized, non-confidential guidance into `AGENTS.md`.
11 changes: 5 additions & 6 deletions .docfx/Dockerfile.docfx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
ARG NGINX_VERSION=1.31-alpine
ARG NGINX_VERSION=1.31-alpine

FROM --platform=$BUILDPLATFORM nginx:${NGINX_VERSION} AS base
FROM --platform=$BUILDPLATFORM dhi.io/nginx:${NGINX_VERSION} AS base
RUN rm -rf /usr/share/nginx/html/*

FROM --platform=$BUILDPLATFORM codebeltnet/docfx:2.78.5 AS build
FROM --platform=$BUILDPLATFORM codebeltnet/docfx:2 AS build

ADD [".", "docfx"]

RUN cd docfx; \
docfx build

FROM nginx:${NGINX_VERSION} AS final
FROM dhi.io/nginx:${NGINX_VERSION} AS final
WORKDIR /usr/share/nginx/html
COPY --from=build /build/docfx/wwwroot /usr/share/nginx/html

ENTRYPOINT ["nginx", "-g", "daemon off;"]
COPY nginx.conf /etc/nginx/conf.d/default.conf
7 changes: 6 additions & 1 deletion .docfx/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
}
],
"dest": "api",
"memberLayout": "separatePages",
"filter": "filterConfig.yml",
"properties": {
"TargetFramework": "net10.0"
}
}
],
"build": {
"sitemap": {
"changefreq": "monthly",
"baseUrl": "https://globalization.codebelt.net/"},
"xref": [
"https://docs.cuemon.net/xrefmap.yml",
"https://github.com/dotnet/docfx/raw/main/.xrefmap.json"
Expand Down Expand Up @@ -63,7 +67,8 @@
"fileMetadataFiles": [],
"template": [
"default",
"modern"
"modern",
"templates/ms-style"
Comment thread
gimlichael marked this conversation as resolved.
],
"overwrite": [
{
Expand Down
31 changes: 31 additions & 0 deletions .docfx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
server {
listen 8080;
server_name _;
# The ingress terminates TLS; keep redirects from exposing this container port.
absolute_redirect off;

root /usr/share/nginx/html;
index index.html;

# DocFX fingerprints these generated dependencies in their filenames. They can be
# cached permanently because changed content is published under a different URL.
location ~ "^/public/.+-[A-Z0-9]{8}(?:-[A-Z0-9]{8})?(?:\.min)?\.(?:(?:css|js)(?:\.map)?|woff2?)$" {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
add_header Vary "Accept-Encoding" always;
}

# Pages, navigation data, images, and DocFX entry assets keep stable URLs. Do not
# retain them across deployments, and ignore validators cached under an old policy.
location / {
# Nginx derives ETags from modification time and file size. Those values can be
# reused by files copied from different image layers, producing a false 304.
etag off;
if_modified_since off;
try_files $uri $uri/ =404;
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
add_header Expires "0" always;
add_header Pragma "no-cache" always;
add_header Vary "Accept-Encoding" always;
}
}
Loading
Loading