diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /documentation/sphinx-static | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/sphinx-static')
| -rw-r--r-- | documentation/sphinx-static/YoctoProject_Logo_RGB.jpg | bin | 49299 -> 0 bytes | |||
| -rw-r--r-- | documentation/sphinx-static/favicon.ico | bin | 1291 -> 0 bytes | |||
| -rw-r--r-- | documentation/sphinx-static/switchers.js.in | 256 | ||||
| -rw-r--r-- | documentation/sphinx-static/theme_overrides.css | 164 |
4 files changed, 0 insertions, 420 deletions
diff --git a/documentation/sphinx-static/YoctoProject_Logo_RGB.jpg b/documentation/sphinx-static/YoctoProject_Logo_RGB.jpg deleted file mode 100644 index 8ab47d49f7..0000000000 --- a/documentation/sphinx-static/YoctoProject_Logo_RGB.jpg +++ /dev/null | |||
| Binary files differ | |||
diff --git a/documentation/sphinx-static/favicon.ico b/documentation/sphinx-static/favicon.ico deleted file mode 100644 index 85a921e3ef..0000000000 --- a/documentation/sphinx-static/favicon.ico +++ /dev/null | |||
| Binary files differ | |||
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in deleted file mode 100644 index b1c0812b53..0000000000 --- a/documentation/sphinx-static/switchers.js.in +++ /dev/null | |||
| @@ -1,256 +0,0 @@ | |||
| 1 | /* | ||
| 2 | NOTE FOR RELEASE MAINTAINERS: | ||
| 3 | This file only needs updating in the development release ("master" branch) | ||
| 4 | When documentation for stable releases is built, | ||
| 5 | the latest version from "master" is used | ||
| 6 | by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-build | ||
| 7 | */ | ||
| 8 | |||
| 9 | (function() { | ||
| 10 | 'use strict'; | ||
| 11 | |||
| 12 | var all_releases = | ||
| 13 | ALL_RELEASES_PLACEHOLDER | ||
| 14 | ; | ||
| 15 | |||
| 16 | var switcher_versions = { | ||
| 17 | VERSIONS_PLACEHOLDER | ||
| 18 | }; | ||
| 19 | |||
| 20 | var all_doctypes = { | ||
| 21 | 'single': 'Individual Webpages', | ||
| 22 | 'mega': "All-in-one 'Mega' Manual", | ||
| 23 | }; | ||
| 24 | |||
| 25 | // Simple version comparision | ||
| 26 | // Return 1 if a > b | ||
| 27 | // Return -1 if a < b | ||
| 28 | // Return 0 if a == b | ||
| 29 | function ver_compare(a, b) { | ||
| 30 | if (a == "dev") { | ||
| 31 | return 1; | ||
| 32 | } | ||
| 33 | |||
| 34 | if (a === b) { | ||
| 35 | return 0; | ||
| 36 | } | ||
| 37 | |||
| 38 | var a_components = a.split("."); | ||
| 39 | var b_components = b.split("."); | ||
| 40 | |||
| 41 | var len = Math.min(a_components.length, b_components.length); | ||
| 42 | |||
| 43 | // loop while the components are equal | ||
| 44 | for (var i = 0; i < len; i++) { | ||
| 45 | // A bigger than B | ||
| 46 | if (parseInt(a_components[i]) > parseInt(b_components[i])) { | ||
| 47 | return 1; | ||
| 48 | } | ||
| 49 | |||
| 50 | // B bigger than A | ||
| 51 | if (parseInt(a_components[i]) < parseInt(b_components[i])) { | ||
| 52 | return -1; | ||
| 53 | } | ||
| 54 | } | ||
| 55 | |||
| 56 | // If one's a prefix of the other, the longer one is greater. | ||
| 57 | if (a_components.length > b_components.length) { | ||
| 58 | return 1; | ||
| 59 | } | ||
| 60 | |||
| 61 | if (a_components.length < b_components.length) { | ||
| 62 | return -1; | ||
| 63 | } | ||
| 64 | |||
| 65 | // Otherwise they are the same. | ||
| 66 | return 0; | ||
| 67 | } | ||
| 68 | |||
| 69 | function build_version_select(current_series, current_version) { | ||
| 70 | var buf = ['<select>']; | ||
| 71 | |||
| 72 | $.each(switcher_versions, function(version, vers_data) { | ||
| 73 | var series = version.substr(0, 3); | ||
| 74 | if (series == current_series) { | ||
| 75 | if (version == current_version) | ||
| 76 | buf.push('<option value="' + version + '" selected="selected">' + vers_data["title"] + '</option>'); | ||
| 77 | else | ||
| 78 | buf.push('<option value="' + version + '">' + vers_data["title"] + '</option>'); | ||
| 79 | } else { | ||
| 80 | buf.push('<option value="' + version + '">' + vers_data["title"] + '</option>'); | ||
| 81 | } | ||
| 82 | }); | ||
| 83 | |||
| 84 | buf.push('</select>'); | ||
| 85 | return buf.join(''); | ||
| 86 | } | ||
| 87 | |||
| 88 | function build_doctype_select(current_doctype) { | ||
| 89 | var buf = ['<select>']; | ||
| 90 | |||
| 91 | $.each(all_doctypes, function(doctype, title) { | ||
| 92 | if (doctype == current_doctype) | ||
| 93 | buf.push('<option value="' + doctype + '" selected="selected">' + | ||
| 94 | all_doctypes[current_doctype] + '</option>'); | ||
| 95 | else | ||
| 96 | buf.push('<option value="' + doctype + '">' + title + '</option>'); | ||
| 97 | }); | ||
| 98 | if (!(current_doctype in all_doctypes)) { | ||
| 99 | // In case we're browsing a doctype that is not yet in all_doctypes. | ||
| 100 | buf.push('<option value="' + current_doctype + '" selected="selected">' + | ||
| 101 | current_doctype + '</option>'); | ||
| 102 | all_doctypes[current_doctype] = current_doctype; | ||
| 103 | } | ||
| 104 | buf.push('</select>'); | ||
| 105 | return buf.join(''); | ||
| 106 | } | ||
| 107 | |||
| 108 | function navigate_to_first_existing(urls) { | ||
| 109 | // Navigate to the first existing URL in urls. | ||
| 110 | var url = urls.shift(); | ||
| 111 | |||
| 112 | // Web browsers won't redirect file:// urls to file urls using ajax but | ||
| 113 | // its useful for local testing | ||
| 114 | if (url.startsWith("file://")) { | ||
| 115 | window.location.href = url; | ||
| 116 | return; | ||
| 117 | } | ||
| 118 | |||
| 119 | if (urls.length == 0) { | ||
| 120 | window.location.href = url; | ||
| 121 | return; | ||
| 122 | } | ||
| 123 | $.ajax({ | ||
| 124 | url: url, | ||
| 125 | success: function() { | ||
| 126 | window.location.href = url; | ||
| 127 | }, | ||
| 128 | error: function() { | ||
| 129 | navigate_to_first_existing(urls); | ||
| 130 | } | ||
| 131 | }); | ||
| 132 | } | ||
| 133 | |||
| 134 | function get_docroot_url() { | ||
| 135 | var url = window.location.href; | ||
| 136 | // Try to get the variable from documentation_options.js | ||
| 137 | var root = DOCUMENTATION_OPTIONS.URL_ROOT; | ||
| 138 | if (root == null) { | ||
| 139 | // In recent versions of Sphinx, URL_ROOT was removed from | ||
| 140 | // documentation_options.js, so get it like searchtools.js does. | ||
| 141 | root = document.documentElement.dataset.content_root; | ||
| 142 | } | ||
| 143 | |||
| 144 | var urlarray = url.split('/'); | ||
| 145 | // Trim off anything after '/' | ||
| 146 | urlarray.pop(); | ||
| 147 | var depth = (root.match(/\.\.\//g) || []).length; | ||
| 148 | for (var i = 0; i < depth; i++) { | ||
| 149 | urlarray.pop(); | ||
| 150 | } | ||
| 151 | |||
| 152 | return urlarray.join('/') + '/'; | ||
| 153 | } | ||
| 154 | |||
| 155 | function on_version_switch() { | ||
| 156 | var selected_version = $(this).children('option:selected').attr('value'); | ||
| 157 | var url = window.location.href; | ||
| 158 | var current_version = DOCUMENTATION_OPTIONS.VERSION; | ||
| 159 | var docroot = get_docroot_url() | ||
| 160 | |||
| 161 | var new_versionpath = selected_version + '/'; | ||
| 162 | |||
| 163 | // latest tag is also the default page (without version information) | ||
| 164 | if (docroot.endsWith(current_version + '/') == false) { | ||
| 165 | var new_url = docroot + new_versionpath + url.replace(docroot, ""); | ||
| 166 | var fallback_url = docroot + new_versionpath; | ||
| 167 | } else { | ||
| 168 | // check for named releases (e.g. dunfell) in the subpath | ||
| 169 | $.each(all_releases, function(idx, release) { | ||
| 170 | if (docroot.endsWith('/' + release + '/')) { | ||
| 171 | current_version = release; | ||
| 172 | return false; | ||
| 173 | } | ||
| 174 | }); | ||
| 175 | |||
| 176 | var new_url = url.replace('/' + current_version + '/', '/' + new_versionpath); | ||
| 177 | var fallback_url = new_url.replace(url.replace(docroot, ""), ""); | ||
| 178 | } | ||
| 179 | |||
| 180 | console.log(get_docroot_url()) | ||
| 181 | console.log(url + " to url " + new_url); | ||
| 182 | console.log(url + " to fallback " + fallback_url); | ||
| 183 | |||
| 184 | if (new_url != url) { | ||
| 185 | navigate_to_first_existing([ | ||
| 186 | new_url, | ||
| 187 | fallback_url, | ||
| 188 | 'https://www.yoctoproject.org/docs/', | ||
| 189 | ]); | ||
| 190 | } | ||
| 191 | } | ||
| 192 | |||
| 193 | function on_doctype_switch() { | ||
| 194 | var selected_doctype = $(this).children('option:selected').attr('value'); | ||
| 195 | var url = window.location.href; | ||
| 196 | if (selected_doctype == 'mega') { | ||
| 197 | var docroot = get_docroot_url() | ||
| 198 | var current_version = DOCUMENTATION_OPTIONS.VERSION; | ||
| 199 | // Assume manuals before 3.2 are using old docbook mega-manual | ||
| 200 | if (ver_compare(current_version, "3.2") < 0) { | ||
| 201 | var new_url = docroot + "mega-manual/mega-manual.html"; | ||
| 202 | } else { | ||
| 203 | var new_url = docroot + "singleindex.html"; | ||
| 204 | } | ||
| 205 | } else { | ||
| 206 | var new_url = url.replace("singleindex.html", "index.html") | ||
| 207 | } | ||
| 208 | |||
| 209 | if (new_url != url) { | ||
| 210 | navigate_to_first_existing([ | ||
| 211 | new_url, | ||
| 212 | 'https://www.yoctoproject.org/docs/', | ||
| 213 | ]); | ||
| 214 | } | ||
| 215 | } | ||
| 216 | |||
| 217 | // Returns the current doctype based upon the url | ||
| 218 | function doctype_segment_from_url(url) { | ||
| 219 | if (url.includes("singleindex") || url.includes("mega-manual")) | ||
| 220 | return "mega"; | ||
| 221 | return "single"; | ||
| 222 | } | ||
| 223 | |||
| 224 | $(document).ready(function() { | ||
| 225 | var release = DOCUMENTATION_OPTIONS.VERSION; | ||
| 226 | var current_doctype = doctype_segment_from_url(window.location.href); | ||
| 227 | var current_series = release.substr(0, 3); | ||
| 228 | var version_select = build_version_select(current_series, release); | ||
| 229 | |||
| 230 | $('.version_switcher_placeholder').html(version_select); | ||
| 231 | $('.version_switcher_placeholder select').bind('change', on_version_switch); | ||
| 232 | |||
| 233 | var doctype_select = build_doctype_select(current_doctype); | ||
| 234 | |||
| 235 | $('.doctype_switcher_placeholder').html(doctype_select); | ||
| 236 | $('.doctype_switcher_placeholder select').bind('change', on_doctype_switch); | ||
| 237 | |||
| 238 | if (release != "dev") { | ||
| 239 | $.each(switcher_versions, function(version, vers_data) { | ||
| 240 | var series = version.substr(0, 3); | ||
| 241 | if (series == current_series) { | ||
| 242 | if (version != release && release.endsWith('.999') == false) { | ||
| 243 | $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.'); | ||
| 244 | $('#outdated-warning').css('padding', '.5em'); | ||
| 245 | return false; | ||
| 246 | } | ||
| 247 | if (vers_data["obsolete"]) { | ||
| 248 | $('#outdated-warning').html('Version ' + release + ' of the project is now considered obsolete, please select and use a more recent version'); | ||
| 249 | $('#outdated-warning').css('padding', '.5em'); | ||
| 250 | return false; | ||
| 251 | } | ||
| 252 | } | ||
| 253 | }); | ||
| 254 | } | ||
| 255 | }); | ||
| 256 | })(); | ||
diff --git a/documentation/sphinx-static/theme_overrides.css b/documentation/sphinx-static/theme_overrides.css deleted file mode 100644 index d235cb826f..0000000000 --- a/documentation/sphinx-static/theme_overrides.css +++ /dev/null | |||
| @@ -1,164 +0,0 @@ | |||
| 1 | /* | ||
| 2 | SPDX-License-Identifier: CC-BY-SA-2.0-UK | ||
| 3 | */ | ||
| 4 | |||
| 5 | body { | ||
| 6 | font-family: Verdana, Sans, sans-serif; | ||
| 7 | margin: 0em auto; | ||
| 8 | color: #333; | ||
| 9 | } | ||
| 10 | |||
| 11 | h1,h2,h3,h4,h5,h6,h7 { | ||
| 12 | font-family: Arial, Sans; | ||
| 13 | color: #00557D; | ||
| 14 | clear: both; | ||
| 15 | } | ||
| 16 | |||
| 17 | h1 { | ||
| 18 | font-size: 2em; | ||
| 19 | text-align: left; | ||
| 20 | padding: 0em 0em 0em 0em; | ||
| 21 | margin: 2em 0em 0em 0em; | ||
| 22 | } | ||
| 23 | |||
| 24 | h2.subtitle { | ||
| 25 | margin: 0.10em 0em 3.0em 0em; | ||
| 26 | padding: 0em 0em 0em 0em; | ||
| 27 | font-size: 1.8em; | ||
| 28 | padding-left: 20%; | ||
| 29 | font-weight: normal; | ||
| 30 | font-style: italic; | ||
| 31 | } | ||
| 32 | |||
| 33 | h2 { | ||
| 34 | margin: 2em 0em 0.66em 0em; | ||
| 35 | padding: 0.5em 0em 0em 0em; | ||
| 36 | font-size: 1.5em; | ||
| 37 | font-weight: bold; | ||
| 38 | } | ||
| 39 | |||
| 40 | h3.subtitle { | ||
| 41 | margin: 0em 0em 1em 0em; | ||
| 42 | padding: 0em 0em 0em 0em; | ||
| 43 | font-size: 142.14%; | ||
| 44 | text-align: right; | ||
| 45 | } | ||
| 46 | |||
| 47 | h3 { | ||
| 48 | margin: 1em 0em 0.5em 0em; | ||
| 49 | padding: 1em 0em 0em 0em; | ||
| 50 | font-size: 140%; | ||
| 51 | font-weight: bold; | ||
| 52 | } | ||
| 53 | |||
| 54 | h4 { | ||
| 55 | margin: 1em 0em 0.5em 0em; | ||
| 56 | padding: 1em 0em 0em 0em; | ||
| 57 | font-size: 120%; | ||
| 58 | font-weight: bold; | ||
| 59 | } | ||
| 60 | |||
| 61 | h5 { | ||
| 62 | margin: 1em 0em 0.5em 0em; | ||
| 63 | padding: 1em 0em 0em 0em; | ||
| 64 | font-size: 110%; | ||
| 65 | font-weight: bold; | ||
| 66 | } | ||
| 67 | |||
| 68 | h6 { | ||
| 69 | margin: 1em 0em 0em 0em; | ||
| 70 | padding: 1em 0em 0em 0em; | ||
| 71 | font-size: 110%; | ||
| 72 | font-weight: bold; | ||
| 73 | } | ||
| 74 | |||
| 75 | em { | ||
| 76 | font-weight: bold; | ||
| 77 | } | ||
| 78 | |||
| 79 | .pre { | ||
| 80 | font-size: medium; | ||
| 81 | font-family: Courier, monospace; | ||
| 82 | } | ||
| 83 | |||
| 84 | .wy-nav-content a { | ||
| 85 | text-decoration: underline; | ||
| 86 | color: #444; | ||
| 87 | background: transparent; | ||
| 88 | } | ||
| 89 | |||
| 90 | .wy-nav-content a:hover { | ||
| 91 | text-decoration: underline; | ||
| 92 | background-color: #dedede; | ||
| 93 | } | ||
| 94 | |||
| 95 | .wy-nav-content a:visited { | ||
| 96 | color: #444; | ||
| 97 | } | ||
| 98 | |||
| 99 | [alt='Permalink'] { color: #eee; } | ||
| 100 | [alt='Permalink']:hover { color: black; } | ||
| 101 | |||
| 102 | @media screen { | ||
| 103 | /* content column | ||
| 104 | * | ||
| 105 | * RTD theme's default is 800px as max width for the content, but we have | ||
| 106 | * tables with tons of columns, which need the full width of the view-port. | ||
| 107 | */ | ||
| 108 | |||
| 109 | .wy-nav-content{max-width: none; } | ||
| 110 | |||
| 111 | /* inline literal: drop the borderbox, padding and red color */ | ||
| 112 | code, .rst-content tt, .rst-content code { | ||
| 113 | color: inherit; | ||
| 114 | border: none; | ||
| 115 | padding: unset; | ||
| 116 | background: inherit; | ||
| 117 | font-size: 85%; | ||
| 118 | } | ||
| 119 | |||
| 120 | .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal { | ||
| 121 | color: inherit; | ||
| 122 | } | ||
| 123 | |||
| 124 | /* Admonition should be gray, not blue or green */ | ||
| 125 | .rst-content .note .admonition-title, | ||
| 126 | .rst-content .tip .admonition-title, | ||
| 127 | .rst-content .warning .admonition-title, | ||
| 128 | .rst-content .caution .admonition-title, | ||
| 129 | .rst-content .admonition-tying-it-together .admonition-title, | ||
| 130 | .rst-content .important .admonition-title { | ||
| 131 | background: #f0f0f2; | ||
| 132 | color: #00557D; | ||
| 133 | |||
| 134 | } | ||
| 135 | |||
| 136 | .rst-content .note, | ||
| 137 | .rst-content .tip, | ||
| 138 | .rst-content .important, | ||
| 139 | .rst-content .warning, | ||
| 140 | .rst-content .admonition-tying-it-together, | ||
| 141 | .rst-content .caution { | ||
| 142 | background: #f0f0f2; | ||
| 143 | } | ||
| 144 | |||
| 145 | /* Remove the icon in front of note/tip element, and before the logo */ | ||
| 146 | .icon-home:before, .rst-content .admonition-title:before { | ||
| 147 | display: none | ||
| 148 | } | ||
| 149 | |||
| 150 | /* a custom informalexample container is used in some doc */ | ||
| 151 | .informalexample { | ||
| 152 | border: 1px solid; | ||
| 153 | border-color: #aaa; | ||
| 154 | margin: 1em 0em; | ||
| 155 | padding: 1em; | ||
| 156 | page-break-inside: avoid; | ||
| 157 | } | ||
| 158 | |||
| 159 | /* Remove the blue background in the top left corner, around the logo */ | ||
| 160 | .wy-side-nav-search { | ||
| 161 | background: inherit; | ||
| 162 | } | ||
| 163 | |||
| 164 | } | ||
