We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78df1e3 + 5579224 commit 658a4f6Copy full SHA for 658a4f6
1 file changed
docker/nginx.conf
@@ -41,6 +41,16 @@ http {
41
return 301 $new_uri;
42
}
43
44
+ # Serve raw markdown inline so the docs "View as Markdown" link opens
45
+ # in a browser tab instead of triggering a download.
46
+ location ~* \.md$ {
47
+ root /usr/share/nginx/html;
48
+ types { }
49
+ default_type "text/markdown; charset=utf-8";
50
+ add_header Content-Disposition "inline";
51
+ add_header X-Content-Type-Options "nosniff";
52
+ }
53
+
54
location / {
55
root /usr/share/nginx/html;
56
index index.html index.htm;
0 commit comments