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
Binary file added src/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#001840</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added src/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/favicon.ico
Binary file not shown.
29 changes: 29 additions & 0 deletions src/static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/static/favicon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" href="/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="black">
<meta name="msapplication-TileColor" content="#001840">
<meta name="theme-color" content="#ffffff">

Note: the apple-touch-icon-precomposed.png is a plain copy of the
apple-touch-icon.png and necessary for devices iOS < 7.

Note: the favicon.svg is sized to w/h 16x16 and viewBox="0 0 16 16" in the
definition so that we can create more easily the icon for safari below.

Note: the "safari-pinned-tab.svg" is a special flavour of favicon.svg
as it has replaced white in the bubbles with transparent. This is necessary
for Safari, see
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/pinnedTabs/pinnedTabs.html
23 changes: 23 additions & 0 deletions src/static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ownCloud Documentation",
"short_name": "ownCloud Doc",
"description": "The ownCloud Documentation",
"lang": "en",
"dir": "ltr",
"display": "standalone",
"orientation": "any",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff"
}
Binary file added src/static/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-ios-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-ocis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/opengraph-user.png
Binary file added src/static/opengraph-webui.png
2 changes: 2 additions & 0 deletions src/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Sitemap: https://doc.owncloud.com/sitemap.xml
29 changes: 29 additions & 0 deletions src/static/safari-pinned-tab.svg
33 changes: 33 additions & 0 deletions src/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
static_files:
- android-chrome-192x192.png
- android-chrome-512x512.png
- apple-touch-icon.png
- apple-touch-icon-60x60.png
- apple-touch-icon-76x76.png
- apple-touch-icon-120x120.png
- apple-touch-icon-152x152.png
- apple-touch-icon-180x180.png
- apple-touch-icon-precomposed.png
- browserconfig.xml
- favicon.ico
- favicon.svg
- favicon-16x16.png
- favicon-32x32.png
- manifest.json
- mstile-70x70.png
- mstile-144x144.png
- mstile-150x150.png
- mstile-310x150.png
- mstile-310x310.png
- opengraph-android.png
- opengraph-branding.png
- opengraph-default.png
- opengraph-desktop.png
- opengraph-docs.png
- opengraph-ios-app.png
- opengraph-ocis.png
- opengraph-server.png
- opengraph-user.png
- opengraph-webui.png
- robots.txt
- safari-pinned-tab.svg
10 changes: 9 additions & 1 deletion tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = (src, dest) => {
if (!fs.existsSync(dest)) {
mkdirp.sync(dest)
}
if (!fs.existsSync(`${src}/static`)) {
Copy link
Collaborator

@LukasHirt LukasHirt Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say this one shouldn't be created in the build process.

  1. if the directory is missing, it might symbolise something broken so actually failing the process because of that would make sense
  2. providing source directories feels more like maintainers responsibility than the build script itself

The dest directory is handled before that as that is the specific output of the build script so in that case I would say it's correct to force the script to take care of that.

Copy link
Collaborator Author

@mmattel mmattel Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the proposed code change is correct, the static folder is OPTIONAL (no kidding). I will explain this tomorrow in zoom 😃

mkdirp.sync(`${src}/static`)
}

const opts = { base: src, cwd: src }
const postcssPlugins = [
Expand Down Expand Up @@ -86,7 +89,12 @@ module.exports = (src, dest) => {

gulp.src('layouts/*.hbs', opts),

gulp.src('partials/*.hbs', opts)
gulp.src('partials/*.hbs', opts),

gulp.src('static/**/*', { ...opts, base: path.join(src, 'static'), dot: true }),

gulp.src('ui.yml', { ...opts, allowEmpty: true })

])

m.pipe(gulp.dest(dest))
Expand Down