Skip to content

Commit

Permalink
Deploy bevyengine/bevy-website to bevyengine/bevy-website:gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Dec 11, 2024
0 parents commit 77087f4
Show file tree
Hide file tree
Showing 3,433 changed files with 225,766 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content="width=device-width,initial-scale=1" name=viewport><meta content="Bevy Engine" property=og:title><meta content=website property=og:type><meta content=https://bevyengine.org property=og:url><meta content=https://bevyengine.org/assets/bevy_logo_fill.png property=og:image><meta content="Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever!" property=og:description><link rel="shortcut icon" href=/assets/favicon.png type=image/png><link href=/site.css rel=stylesheet><link href=/atom.xml rel=alternate type=application/atom+xml><title>Bevy Engine</title><body><div class=layout><input class=hidden id=mobile-menu-state type=checkbox><header class="layout__header header print:hidden" data-mobile-menu-state-container><div class=header__content><label class=main-menu-backdrop for=mobile-menu-state></label><label class="header__hamburger button-square button-square--header" for=mobile-menu-state><img alt="Three horizontal lines stacked on top of eachother" height=16 src=/assets/icon-hamburger.svg width=20></label><div class=header__left-block><a class=header__logo href=/> <img alt="Bevy Engine" class=logo height=130 src=/assets/bevy_logo_dark.svg width=520> </a><div class=header__message></div></div><nav class="header__menu main-menu" data-page-menu-switch-state-container role=navigation><div class=main-menu__header><a href=/> <img alt="Bevy Engine" class=logo height=130 src=/assets/bevy_logo_dark.svg width=520> </a><label class="button-square button-square--header" for=mobile-menu-state><img alt="A saltire or x-cross" height=16 src=/assets/icon-times.svg width=16></label></div><div class=main-menu__content><div class=main-menu__page-menu></div><ul class=main-menu__menu><li class="main-menu__entry main-menu__entry--getting-started"><a class=main-menu__link href=/learn/quick-start/getting-started/> <span>Getting Started</span> </a><li class=main-menu__entry><a class=main-menu__link href=/learn/> <span>Learn</span> </a><li class=main-menu__entry><a class=main-menu__link href=/news/> <span>News</span> </a><li class=main-menu__entry><a class=main-menu__link href=/community/> <span>Community</span> </a><li class=main-menu__entry><a class=main-menu__link href=/foundation/> <span>Foundation</span> </a><li class=main-menu__entry><a class=main-menu__link href=/assets/> <span>Assets</span> </a><li class=main-menu__entry><a class=main-menu__link href=/examples/> <span>Examples</span> </a></ul></div></nav><div class=header__cta-container><a class="button button--pink header__cta" href=/donate>Donate <img alt="heart icon" class=button__icon height=512 src=/assets/heart.svg width=512> </a><a class="header__cta header__cta--github" href=https://github.com/bevyengine/bevy> <img alt="GitHub repo" height=96 src=/assets/github-mark-white.svg width=98> </a></div></div></header><main class=layout__content><div class=container><div class=fourohfour><h1>404</h1><p>Sorry, we couldn't find that page.</p><img alt="Bevy logo" height=130 src=/assets/bevy_icon_dark.svg width=176></div></div></main><footer class=print:hidden><div class=footer__social-container><a class=footer__social href=https://github.com/bevyengine/bevy title=GitHub> <img alt="GitHub logo" height=24 src=/assets/github-mark-white.svg width=24> </a><a class=footer__social href=https://discord.gg/bevy title=Discord> <img alt="Discord logo" height=24 src=/assets/discord.svg width=24> </a><a class=footer__social href=https://bsky.app/profile/bevyengine.org title=Bluesky> <img alt="Bluesky logo" height=24 src=/assets/bluesky.svg width=24> </a><a class=footer__social href=https://twitter.com/BevyEngine title=Twitter> <img alt="Twitter logo" height=24 src=/assets/twitter.svg width=24> </a><a class=footer__social href=https://www.reddit.com/r/bevy/ title=Reddit> <img alt="Reddit logo" height=24 src=/assets/reddit.svg width=24> </a><a class=footer__social href=https://itch.io/games/tag-bevy title=itch.io> <img alt="itch.io logo" height=24 src=/assets/itchio-textless.svg width=24> </a><a class=footer__social href=https://mastodon.social/@bevy title=Mastodon> <img alt="Mastodon logo" height=24 src=/assets/mastodon-logo-purple.svg width=24> </a><a title="Bevy news feed" class=footer__social href=/atom.xml> <img alt="Bevy news feed" height=24 src=/assets/feed.svg width=24> </a></div></footer></div><script>const search_params=new URLSearchParams(window.location.search);if(search_params.has(`show_drafts`)||document.cookie.indexOf(`show_drafts`)>=0){let a=`show_drafts`;if(search_params.get(a)===`0`){document.cookie=`show_drafts=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC`}else{document.cookie=`show_drafts=1;path=/`;document.body.classList.add(a)}}</script>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bevyengine.org
3 changes: 3 additions & 0 deletions assets-docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Documentation Assets

The `assets-docs` directory contains asset files used in the bevy crate rustdoc / docs.rs documentation.
9 changes: 9 additions & 0 deletions assets-docs/tonemapping/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Tonemapping Algorithms

The files in this directory were created using the `tonemapping` example from the `bevy` repository.
The left side is the color sweep mode.
The right side is from two separate EXR images in the image viewer mode, using the `exr` feature.
The top-right image is `dragonscene_ap0_v01_1001.exr` from Scott Dyer's (Senior Imaging Engineer at Academy of Motion Picture Arts and Sciences) [source images intended for tonemapping research and testing](https://www.dropbox.com/sh/zea11rkxkivv7w7/AAD51uKh-gjCl0uCCg15G9oya/original/monsieur-lixm?dl=0&subfolder_nav_tracking=1).
The bottom-right image is `blue_bar_709.exr` which is from [Martin Smekal](https://community.acescentral.com/t/vfx-work-in-acescg-with-out-of-gamut-devices/2385/3) but the specific file used was via [Troy Sobotka's collection of testing imagery](https://github.com/sobotka/Testing_Imagery/blob/main/blue_bar_709.exr).

The example was run, PNG screenshots were taken making sure the ui text did not overlap the images, and then the images were cropped and composed using imagemagick command line tools.
Binary file added assets-docs/tonemapping/aces_fitted.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 assets-docs/tonemapping/agx.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 assets-docs/tonemapping/blender_filmic.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 assets-docs/tonemapping/disabled.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 assets-docs/tonemapping/reinhard.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 assets-docs/tonemapping/reinhard_luminance.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 assets-docs/tonemapping/sbdt.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 assets-docs/tonemapping/tonymcmapface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
152 changes: 152 additions & 0 deletions assets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
let filters_state = {
search_terms: [''],
version: 'all_versions'
}

const check_filters = (filters) => (node) => {
let results = filters.map(filter => filter(node));
return results.every(val => val)
}

const pass_filters = check_filters([
filter_search_terms,
filter_version
]);

function filter_assets() {
document.querySelectorAll('.asset-card').forEach(asset => {
asset.parentElement.style.display = pass_filters(asset) ? 'block' : 'none'
})
}

// ------------ Search terms Filtering

const searchElement = document.querySelector('#assets-search')
const searchUpdateDelay = 350

// Prevents `callback` from being called more than once within `wait` milliseconds.
function debounce(callback, wait) {
let timeoutId
return (...args) => {
clearTimeout(timeoutId)
timeoutId = setTimeout(() => callback(...args), wait)
}
}

searchElement.addEventListener("input", debounce(_ => {
filters_state.search_terms = searchElement.value.toLowerCase().split(' ');
filter_assets()
hideEmptySubSections()
hideEmptySections()
updateSuggestionLinks()
}, searchUpdateDelay))

function filter_search_terms(asset_node) {
const fullText = asset_node.text.toLowerCase()
return filters_state.search_terms.every((term) => fullText.includes(term))
}

function hideEmptySubSections() {
for (const itemGrid of document.querySelectorAll('.item-grid')) {
const cardInGrid = [...itemGrid.querySelectorAll('.asset-card')]
const areAllHidden = (cardInGrid.every((card) => card.parentElement.style.display === 'none'))
itemGrid.style.display = areAllHidden ? 'none' : 'grid'
itemGrid.previousElementSibling.style.display = areAllHidden ? 'none' : 'block'
}
}

function hideEmptySections() {
document.querySelectorAll('.asset-section').forEach(section => {
let nextElement = section.nextElementSibling
while (nextElement && (nextElement.classList.contains('asset-subsection') || nextElement.classList.contains('item-grid'))) {
if (nextElement.style.display !== 'none') {
section.style.display = 'block'
return
}
nextElement = nextElement.nextElementSibling
}
section.style.display = 'none'
})
}

// A dictionary of 'suggestion-id': ['base-url', 'query-suffix'].
const suggestionsUrls = {
'#suggestion-github': ['https://github.com/bevyengine/bevy/discussions', '?discussions_q='],
'#suggestion-cheatbook': ['https://bevy-cheatbook.github.io/', '?search='],
'#suggestion-docs': ['https://docs.rs/bevy/latest/bevy/', '?search='],
}

function updateSuggestionLinks() {
const searchValue = searchElement.value.toLowerCase()

if (searchValue === '') {
for (const [linkId, [uriBase, _]] of Object.entries(suggestionsUrls)) {
// No search value, just set base url
document.querySelector(linkId).href = uriBase
}
} else {
for (const [linkId, [uriBase, query]] of Object.entries(suggestionsUrls)) {
// Some search value, add query
document.querySelector(linkId).href = uriBase + query + encodeURIComponent(searchValue)
}
}
}

// ------------ Version Filtering
const version_always_show = ['*', 'main', '']

function sort_versions(a, b) {
let a1 = a.split('.').map(i => i.padStart(3, '0')).join('');
let b1 = b.split('.').map(i => i.padStart(3, '0')).join('');
return b1 - a1;
}

function normalize_version(raw_version) {
let version = raw_version?.replace(/^[^\d]+/, '').replace(/[^\d]+$/, '');
let normalized_version = version ? Array.from({ ...version.split('.'), length: 3 }, (v, i) => v ?? 0).join('.') : '*'
return normalized_version;
}

function filter_version(asset_node) {
let name = asset_node.querySelector('.asset-card__title').innerHTML;

let tag = asset_node.querySelector('.asset-card__tags .asset-card__bevy-versions .asset-card__tag');
if (filters_state.version === 'all_versions') {
return true
}
else if (tag) {
let raw_item_value = tag.innerText;
let normalized_version = normalize_version(raw_item_value);
return [filters_state.version, ...version_always_show].includes(normalized_version);
} else return true
}

let versionsSelect = document.querySelector('#assets-filter');
if (versionsSelect) {
let versionsQuery = document.querySelectorAll('.asset-card .asset-card__bevy-versions .asset-card__tag');
[...new Set([...versionsQuery]
.map((item) => {
let raw_version = item?.innerText;
let normalized_version = normalize_version(raw_version);
return normalized_version
})
.filter(i => i)
.filter(i => !version_always_show.includes(i))
.sort(sort_versions)
)].forEach(i => {
var opt = document.createElement('option');
opt.value = i;
opt.innerHTML = i;
versionsSelect.appendChild(opt);
})

}

document.querySelector('[data-assets-filters]').classList.remove('hidden');

document
.querySelector('#assets-filter')
.addEventListener("change", (item) => {
filters_state.version = item.target.value;
filter_assets();
})
Binary file added assets/Pixeljam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/apps/games/2048-game/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang=en><head><meta charset=UTF-8><meta content="width=device-width,initial-scale=1" name=viewport><meta content="Bevy Assets" property=og:title><meta content=website property=og:type><meta content=https://bevyengine.org//assets/apps/games/2048-game/ property=og:url><meta content=https://bevyengine.org/assets/bevy_logo_fill.png property=og:image><meta content="Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever!" property=og:description><link rel="shortcut icon" href=/assets/favicon.png type=image/png><link href=/site.css rel=stylesheet><link href=/atom.xml rel=alternate type=application/atom+xml><title>Bevy Assets</title><body><div class=layout><input class=hidden id=mobile-menu-state type=checkbox><header class="layout__header header print:hidden" data-mobile-menu-state-container><div class=header__content><label class=main-menu-backdrop for=mobile-menu-state></label><label class="header__hamburger button-square button-square--header" for=mobile-menu-state><img alt="Three horizontal lines stacked on top of eachother" height=16 src=/assets/icon-hamburger.svg width=20></label><div class=header__left-block><a class=header__logo href=/> <img alt="Bevy Engine" class=logo height=130 src=/assets/bevy_logo_dark.svg width=520> </a><div class=header__message></div></div><nav class="header__menu main-menu" data-page-menu-switch-state-container role=navigation><div class=main-menu__header><a href=/> <img alt="Bevy Engine" class=logo height=130 src=/assets/bevy_logo_dark.svg width=520> </a><label class="button-square button-square--header" for=mobile-menu-state><img alt="A saltire or x-cross" height=16 src=/assets/icon-times.svg width=16></label></div><div class=main-menu__content><div class=main-menu__page-menu></div><ul class=main-menu__menu><li class="main-menu__entry main-menu__entry--getting-started"><a class=main-menu__link href=/learn/quick-start/getting-started/> <span>Getting Started</span> </a><li class=main-menu__entry><a class=main-menu__link href=/learn/> <span>Learn</span> </a><li class=main-menu__entry><a class=main-menu__link href=/news/> <span>News</span> </a><li class=main-menu__entry><a class=main-menu__link href=/community/> <span>Community</span> </a><li class=main-menu__entry><a class=main-menu__link href=/foundation/> <span>Foundation</span> </a><li class=main-menu__entry><a class="main-menu__link main-menu__link--active" href=/assets/> <span>Assets</span> </a><li class=main-menu__entry><a class=main-menu__link href=/examples/> <span>Examples</span> </a></ul></div></nav><div class=header__cta-container><a class="button button--pink header__cta" href=/donate>Donate <img alt="heart icon" class=button__icon height=512 src=/assets/heart.svg width=512> </a><a class="header__cta header__cta--github" href=https://github.com/bevyengine/bevy> <img alt="GitHub repo" height=96 src=/assets/github-mark-white.svg width=98> </a></div></div></header><main class=layout__content><div class=container><div class=media-content></div></div></main><footer class=print:hidden><div class=footer__social-container><a class=footer__social href=https://github.com/bevyengine/bevy title=GitHub> <img alt="GitHub logo" height=24 src=/assets/github-mark-white.svg width=24> </a><a class=footer__social href=https://discord.gg/bevy title=Discord> <img alt="Discord logo" height=24 src=/assets/discord.svg width=24> </a><a class=footer__social href=https://bsky.app/profile/bevyengine.org title=Bluesky> <img alt="Bluesky logo" height=24 src=/assets/bluesky.svg width=24> </a><a class=footer__social href=https://twitter.com/BevyEngine title=Twitter> <img alt="Twitter logo" height=24 src=/assets/twitter.svg width=24> </a><a class=footer__social href=https://www.reddit.com/r/bevy/ title=Reddit> <img alt="Reddit logo" height=24 src=/assets/reddit.svg width=24> </a><a class=footer__social href=https://itch.io/games/tag-bevy title=itch.io> <img alt="itch.io logo" height=24 src=/assets/itchio-textless.svg width=24> </a><a class=footer__social href=https://mastodon.social/@bevy title=Mastodon> <img alt="Mastodon logo" height=24 src=/assets/mastodon-logo-purple.svg width=24> </a><a title="Bevy news feed" class=footer__social href=/atom.xml> <img alt="Bevy news feed" height=24 src=/assets/feed.svg width=24> </a></div></footer></div><script>const search_params=new URLSearchParams(window.location.search);if(search_params.has(`show_drafts`)||document.cookie.indexOf(`show_drafts`)>=0){let a=`show_drafts`;if(search_params.get(a)===`0`){document.cookie=`show_drafts=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC`}else{document.cookie=`show_drafts=1;path=/`;document.body.classList.add(a)}}</script>
Binary file added assets/apps/games/2048.jpg
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 assets/apps/games/3d-cellular-automata.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 assets/apps/games/Hug.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 assets/apps/games/Kataster.webp
Binary file not shown.
Binary file added assets/apps/games/One-Click-Ninja.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 assets/apps/games/ace-of-the-heavens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 77087f4

Please sign in to comment.