diff --git a/src/static/android-chrome-192x192.png b/src/static/android-chrome-192x192.png new file mode 100644 index 0000000..1df8b92 Binary files /dev/null and b/src/static/android-chrome-192x192.png differ diff --git a/src/static/android-chrome-512x512.png b/src/static/android-chrome-512x512.png new file mode 100644 index 0000000..2d55f09 Binary files /dev/null and b/src/static/android-chrome-512x512.png differ diff --git a/src/static/apple-touch-icon-120x120.png b/src/static/apple-touch-icon-120x120.png new file mode 100644 index 0000000..5a32b2c Binary files /dev/null and b/src/static/apple-touch-icon-120x120.png differ diff --git a/src/static/apple-touch-icon-152x152.png b/src/static/apple-touch-icon-152x152.png new file mode 100644 index 0000000..1da78ab Binary files /dev/null and b/src/static/apple-touch-icon-152x152.png differ diff --git a/src/static/apple-touch-icon-180x180.png b/src/static/apple-touch-icon-180x180.png new file mode 100644 index 0000000..1648427 Binary files /dev/null and b/src/static/apple-touch-icon-180x180.png differ diff --git a/src/static/apple-touch-icon-60x60.png b/src/static/apple-touch-icon-60x60.png new file mode 100644 index 0000000..7e89930 Binary files /dev/null and b/src/static/apple-touch-icon-60x60.png differ diff --git a/src/static/apple-touch-icon-76x76.png b/src/static/apple-touch-icon-76x76.png new file mode 100644 index 0000000..f521cc2 Binary files /dev/null and b/src/static/apple-touch-icon-76x76.png differ diff --git a/src/static/apple-touch-icon-precomposed.png b/src/static/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..1648427 Binary files /dev/null and b/src/static/apple-touch-icon-precomposed.png differ diff --git a/src/static/apple-touch-icon.png b/src/static/apple-touch-icon.png new file mode 100644 index 0000000..1648427 Binary files /dev/null and b/src/static/apple-touch-icon.png differ diff --git a/src/static/browserconfig.xml b/src/static/browserconfig.xml new file mode 100644 index 0000000..5e980cc --- /dev/null +++ b/src/static/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #001840 + + + diff --git a/src/static/favicon-16x16.png b/src/static/favicon-16x16.png new file mode 100644 index 0000000..5d88bf4 Binary files /dev/null and b/src/static/favicon-16x16.png differ diff --git a/src/static/favicon-32x32.png b/src/static/favicon-32x32.png new file mode 100644 index 0000000..cd4e319 Binary files /dev/null and b/src/static/favicon-32x32.png differ diff --git a/src/static/favicon.ico b/src/static/favicon.ico new file mode 100644 index 0000000..7e3a3f6 Binary files /dev/null and b/src/static/favicon.ico differ diff --git a/src/static/favicon.svg b/src/static/favicon.svg new file mode 100644 index 0000000..5cd03ac --- /dev/null +++ b/src/static/favicon.svg @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/src/static/favicon.txt b/src/static/favicon.txt new file mode 100644 index 0000000..664c5ca --- /dev/null +++ b/src/static/favicon.txt @@ -0,0 +1,19 @@ + + + + + + + + + +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 diff --git a/src/static/manifest.json b/src/static/manifest.json new file mode 100644 index 0000000..65e0008 --- /dev/null +++ b/src/static/manifest.json @@ -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" +} diff --git a/src/static/mstile-144x144.png b/src/static/mstile-144x144.png new file mode 100644 index 0000000..b30f9aa Binary files /dev/null and b/src/static/mstile-144x144.png differ diff --git a/src/static/mstile-150x150.png b/src/static/mstile-150x150.png new file mode 100644 index 0000000..cfeae4d Binary files /dev/null and b/src/static/mstile-150x150.png differ diff --git a/src/static/mstile-310x150.png b/src/static/mstile-310x150.png new file mode 100644 index 0000000..091c1c1 Binary files /dev/null and b/src/static/mstile-310x150.png differ diff --git a/src/static/mstile-310x310.png b/src/static/mstile-310x310.png new file mode 100644 index 0000000..a1ff016 Binary files /dev/null and b/src/static/mstile-310x310.png differ diff --git a/src/static/mstile-70x70.png b/src/static/mstile-70x70.png new file mode 100644 index 0000000..8916ba4 Binary files /dev/null and b/src/static/mstile-70x70.png differ diff --git a/src/static/opengraph-android.png b/src/static/opengraph-android.png new file mode 100644 index 0000000..8d2bc7d Binary files /dev/null and b/src/static/opengraph-android.png differ diff --git a/src/static/opengraph-branding.png b/src/static/opengraph-branding.png new file mode 100644 index 0000000..13cf308 Binary files /dev/null and b/src/static/opengraph-branding.png differ diff --git a/src/static/opengraph-default.png b/src/static/opengraph-default.png new file mode 100644 index 0000000..ff22dc0 Binary files /dev/null and b/src/static/opengraph-default.png differ diff --git a/src/static/opengraph-desktop.png b/src/static/opengraph-desktop.png new file mode 100644 index 0000000..d9a2e2e Binary files /dev/null and b/src/static/opengraph-desktop.png differ diff --git a/src/static/opengraph-docs.png b/src/static/opengraph-docs.png new file mode 100644 index 0000000..ff22dc0 Binary files /dev/null and b/src/static/opengraph-docs.png differ diff --git a/src/static/opengraph-ios-app.png b/src/static/opengraph-ios-app.png new file mode 100644 index 0000000..42494a0 Binary files /dev/null and b/src/static/opengraph-ios-app.png differ diff --git a/src/static/opengraph-ocis.png b/src/static/opengraph-ocis.png new file mode 100644 index 0000000..32471bb Binary files /dev/null and b/src/static/opengraph-ocis.png differ diff --git a/src/static/opengraph-server.png b/src/static/opengraph-server.png new file mode 100644 index 0000000..6587d77 Binary files /dev/null and b/src/static/opengraph-server.png differ diff --git a/src/static/opengraph-user.png b/src/static/opengraph-user.png new file mode 100644 index 0000000..238ee1e Binary files /dev/null and b/src/static/opengraph-user.png differ diff --git a/src/static/opengraph-webui.png b/src/static/opengraph-webui.png new file mode 100644 index 0000000..7e06054 Binary files /dev/null and b/src/static/opengraph-webui.png differ diff --git a/src/static/robots.txt b/src/static/robots.txt new file mode 100644 index 0000000..589ec6e --- /dev/null +++ b/src/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: https://doc.owncloud.com/sitemap.xml diff --git a/src/static/safari-pinned-tab.svg b/src/static/safari-pinned-tab.svg new file mode 100644 index 0000000..8ed7945 --- /dev/null +++ b/src/static/safari-pinned-tab.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui.yml b/src/ui.yml new file mode 100644 index 0000000..f8e6361 --- /dev/null +++ b/src/ui.yml @@ -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 diff --git a/tasks/build.js b/tasks/build.js index 8f57dde..473466e 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -26,6 +26,9 @@ module.exports = (src, dest) => { if (!fs.existsSync(dest)) { mkdirp.sync(dest) } + if (!fs.existsSync(`${src}/static`)) { + mkdirp.sync(`${src}/static`) + } const opts = { base: src, cwd: src } const postcssPlugins = [ @@ -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))