Skip to content

Commit

Permalink
Try a different theme and fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed Nov 24, 2023
1 parent 4f0b06c commit ebf49e9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:

- name: Setup Pages
uses: actions/configure-pages@v3
with:
generator_config_file: ./_site/_config.yml

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Configuration for GitHub Pages (Jekyll)
theme: jekyll-theme-midnight
15 changes: 15 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
---

// https://github.com/pages-themes/midnight#stylesheet
@import "{{ site.theme }}";

// Give code links a color that matches regular links
a code {
color: inherit;
}

// Remove weird extra padding and spaces from inline code blocks
code {
padding: 0;
}
4 changes: 1 addition & 3 deletions citro3d/examples/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ static VERTICES: &[Vertex] = &[
static SHADER_BYTES: &[u8] = include_shader!("assets/vshader.pica");

fn main() {
ctru::use_panic_handler();

let mut soc = Soc::new().expect("failed to get SOC");
drop(soc.redirect_to_3dslink(true, true));

Expand Down Expand Up @@ -166,7 +164,7 @@ struct Projections {
fn calculate_projections() -> Projections {
// TODO: it would be cool to allow playing around with these parameters on
// the fly with D-pad, etc.
let slider_val = unsafe { ctru_sys::osGet3DSliderState() };
let slider_val = ctru::os::current_3d_slider_state();
let interocular_distance = slider_val / 2.0;

let vertical_fov = 40.0_f32.to_radians();
Expand Down

0 comments on commit ebf49e9

Please sign in to comment.