Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
python-uga
training-hpc
Commits
8810b565
Commit
8810b565
authored
Sep 22, 2021
by
paugier
Browse files
Try to fix website build
parent
d4b4a324
Pipeline
#75743
passed with stage
in 50 seconds
Changes
165
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8810b565
...
...
@@ -5,9 +5,6 @@ IPYNBFILES := $(shell find $(IPYNBDIR) -name '*.ipynb' | grep -v ipynb_checkpoin
IPYNBPRES
=
$(
addsuffix
.slides.html,
$(
basename
$(IPYNBFILES)
))
# TPL_FILE = ipynb/slides_reveal_wide.tpl
TPL_FILE
=
ipynb/slides_reveal.tpl
define
STR_HELP
This
makefile
can
be
used
for
...
...
@@ -43,10 +40,13 @@ ipynb/index.html: ipynb/index.rst
cd
$(IPYNBDIR)
&&
rst2html5 index.rst
>
index.html
%.slides.html
:
%.ipynb $(TPL_FILE)
jupyter-nbconvert
$<
--reveal-prefix
=
'./reveal.js'
--t
o
slides
--template
$(TPL_FILE)
jupyter-nbconvert
$<
--to
slides
--reveal-prefix
=
'./reveal.js'
--t
emplate
$(
shell
pwd
)
/ipynb/nbconvert-template
presentations
:
$(IPYNBPRES) ipynb/index.html
echo
$(IPYNBPRES)
presentations
:
ipynb/index.html $(IPYNBPRES)
@
echo
@
echo
Presentations built!
@
echo
you can display the presentations with the
command
@
echo
make serve
serve
:
$(IPYNBPRES) ipynb/index.html
cd
$(IPYNBDIR)
&&
python3
-m
http.server
ipynb/nbconvert-template/conf.json
0 → 100644
View file @
8810b565
{
"base_template"
:
"reveal"
}
\ No newline at end of file
ipynb/nbconvert-template/index.html.j2
0 → 100644
View file @
8810b565
{%- extends 'base.html.j2' -%}
{% from 'mathjax.html.j2' import mathjax %}
{% from 'jupyter_widgets.html.j2' import jupyter_widgets %}
{% set reveal_url_prefix = resources.reveal.url_prefix | default('https://unpkg.com/reveal.js@4.0.2', true) %}
{% set reveal_theme = resources.reveal.theme | default('white', true) %}
{% set reveal_transition = resources.reveal.transition | default('slide', true) %}
{% set reveal_scroll = resources.reveal.scroll | default(false, true) | json_dumps %}
{%- block header -%}
<!DOCTYPE html>
<html>
<head>
{%- block html_head -%}
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"chrome=1"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
{% set nb_title = nb.metadata.get('title', '') or resources['metadata']['name'] %}
<title>
{{nb_title}} slides
</title>
{%- block html_head_js -%}
{%- block html_head_js_jquery -%}
<script
src=
"{{ resources.jquery_url }}"
></script>
{%- endblock html_head_js_jquery -%}
{%- block html_head_js_requirejs -%}
<script
src=
"{{ resources.require_js_url }}"
></script>
{%- endblock html_head_js_requirejs -%}
{%- endblock html_head_js -%}
{% block jupyter_widgets %}
{%- if "widgets" in nb.metadata -%}
{{ jupyter_widgets(resources.jupyter_widgets_base_url, resources.html_manager_semver_range) }}
{%- endif -%}
{% endblock jupyter_widgets %}
<!-- General and theme style sheets -->
<link
rel=
"stylesheet"
href=
"{{ reveal_url_prefix }}/dist/reveal.css"
>
<link
rel=
"stylesheet"
href=
"{{ reveal_url_prefix }}/dist/theme/{{reveal_theme}}.css"
id=
"theme"
>
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if
(
window
.
location
.
search
.
match
(
/print-pdf/gi
)
)
{
var
link
=
document
.
createElement
(
'
link
'
);
link
.
rel
=
'
stylesheet
'
;
link
.
type
=
'
text/css
'
;
document
.
getElementsByTagName
(
'
head
'
)[
0
].
appendChild
(
link
);
}
</script>
<!-- Loading the mathjax macro -->
{{ mathjax() }}
{% for css in resources.inlining.css -%}
<style
type=
"text/css"
>
{
{
css
}
}
</style>
{% endfor %}
{% block notebook_css %}
{{ resources.include_css("static/index.css") }}
{% if resources.theme == 'dark' %}
{{ resources.include_css("static/theme-dark.css") }}
{% else %}
{{ resources.include_css("static/theme-light.css") }}
{% endif %}
<style
type=
"text/css"
>
a
.anchor-link
{
display
:
none
;
}
.highlight
{
margin
:
0.4em
;
}
.jp-Notebook
{
padding
:
0
;
}
:root
{
--jp-ui-font-size1
:
20px
;
/* instead of 14px */
--jp-content-font-size1
:
20px
;
/* instead of 14px */
--jp-code-font-size
:
19px
;
/* instead of 13px */
--jp-cell-prompt-width
:
110px
;
/* instead of 64px */
}
@media
print
{
body
{
margin
:
0
;
}
}
</style>
{{ resources.include_css("static/custom_reveal.css") }}
{% endblock notebook_css %}
{%- endblock html_head -%}
</head>
{% endblock header%}
{%- block body_header -%}
{% if resources.theme == 'dark' %}
<body
class=
"jp-Notebook"
data-jp-theme-light=
"false"
data-jp-theme-name=
"JupyterLab Dark"
>
{% else %}
<body
class=
"jp-Notebook"
data-jp-theme-light=
"true"
data-jp-theme-name=
"JupyterLab Light"
>
{% endif %}
<div
class=
"reveal"
>
<div
class=
"slides"
>
{%- endblock body_header -%}
{% block body_footer %}
</div>
</div>
</body>
{% endblock body_footer %}
{% block footer %}
{% block footer_js %}
<script>
require
(
{
// it makes sense to wait a little bit when you are loading
// reveal from a cdn in a slow connection environment
waitSeconds
:
15
},
[
"
{{ reveal_url_prefix }}/dist/reveal.js
"
],
function
(
Reveal
){
// Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
Reveal
.
initialize
({
controls
:
true
,
progress
:
true
,
history
:
true
,
// changed by PA
width
:
'
85%
'
,
height
:
'
100%
'
,
slideNumber
:
true
,
// end of changes PA
transition
:
"
{{reveal_transition}}
"
,
});
var
update
=
function
(
event
){
if
(
MathJax
.
Hub
.
getAllJax
(
Reveal
.
getCurrentSlide
())){
MathJax
.
Hub
.
Rerender
(
Reveal
.
getCurrentSlide
());
}
};
Reveal
.
addEventListener
(
'
slidechanged
'
,
update
);
function
setScrollingSlide
()
{
var
scroll
=
true
if
(
scroll
===
true
)
{
var
h
=
$
(
'
.reveal
'
).
height
()
*
0.95
;
$
(
'
section.present
'
).
find
(
'
section
'
)
.
filter
(
function
()
{
return
$
(
this
).
height
()
>
h
;
})
.
css
(
'
height
'
,
'
calc(95vh)
'
)
.
css
(
'
overflow-y
'
,
'
scroll
'
)
.
css
(
'
margin-top
'
,
'
20px
'
);
}
}
// check and set the scrolling slide every time the slide change
Reveal
.
addEventListener
(
'
slidechanged
'
,
setScrollingSlide
);
}
);
</script>
{% endblock footer_js %}
</html>
{% endblock footer %}
ipynb/reveal.js/.github/FUNDING.yml
0 → 100644
View file @
8810b565
github
:
[
hakimel
]
ipynb/reveal.js/.github/workflows/js.yml
0 → 100644
View file @
8810b565
name
:
tests
on
:
[
push
]
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
[
10.x
,
14.x
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v1
with
:
node-version
:
${{ matrix.node-version }}
-
run
:
npm install
-
run
:
npm run build --if-present
-
run
:
npm test
env
:
CI
:
true
ipynb/reveal.js/.gitignore
View file @
8810b565
.idea/
*.iml
*.iws
*.eml
out/
.DS_Store
.svn
log/*.log
tmp/**
node_modules/
.sass-cache
css/reveal.min.css
js/reveal.min.js
dist/*.map
\ No newline at end of file
ipynb/reveal.js/.npmignore
0 → 100644
View file @
8810b565
/test
/examples
.github
.gulpfile
.sass-cache
gulpfile.js
CONTRIBUTING.md
\ No newline at end of file
ipynb/reveal.js/.travis.yml
deleted
100644 → 0
View file @
d4b4a324
language
:
node_js
node_js
:
-
4.1.1
before_script
:
-
npm install -g grunt-cli
\ No newline at end of file
ipynb/reveal.js/Gruntfile.js
deleted
100644 → 0
View file @
d4b4a324
/* global module:false */
module
.
exports
=
function
(
grunt
)
{
var
port
=
grunt
.
option
(
'
port
'
)
||
8000
;
var
base
=
grunt
.
option
(
'
base
'
)
||
'
.
'
;
// Project configuration
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
'
package.json
'
),
meta
:
{
banner
:
'
/*!
\n
'
+
'
* reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)
\n
'
+
'
* http://lab.hakim.se/reveal-js
\n
'
+
'
* MIT licensed
\n
'
+
'
*
\n
'
+
'
* Copyright (C) 2015 Hakim El Hattab, http://hakim.se
\n
'
+
'
*/
'
},
qunit
:
{
files
:
[
'
test/*.html
'
]
},
uglify
:
{
options
:
{
banner
:
'
<%= meta.banner %>
\n
'
},
build
:
{
src
:
'
js/reveal.js
'
,
dest
:
'
js/reveal.min.js
'
}
},
sass
:
{
core
:
{
files
:
{
'
css/reveal.css
'
:
'
css/reveal.scss
'
,
}
},
themes
:
{
files
:
[
{
expand
:
true
,
cwd
:
'
css/theme/source
'
,
src
:
[
'
*.scss
'
],
dest
:
'
css/theme
'
,
ext
:
'
.css
'
}
]
}
},
autoprefixer
:
{
dist
:
{
src
:
'
css/reveal.css
'
}
},
cssmin
:
{
compress
:
{
files
:
{
'
css/reveal.min.css
'
:
[
'
css/reveal.css
'
]
}
}
},
jshint
:
{
options
:
{
curly
:
false
,
eqeqeq
:
true
,
immed
:
true
,
latedef
:
true
,
newcap
:
true
,
noarg
:
true
,
sub
:
true
,
undef
:
true
,
eqnull
:
true
,
browser
:
true
,
expr
:
true
,
globals
:
{
head
:
false
,
module
:
false
,
console
:
false
,
unescape
:
false
,
define
:
false
,
exports
:
false
}
},
files
:
[
'
Gruntfile.js
'
,
'
js/reveal.js
'
]
},
connect
:
{
server
:
{
options
:
{
port
:
port
,
base
:
base
,
livereload
:
true
,
open
:
true
}
}
},
zip
:
{
'
reveal-js-presentation.zip
'
:
[
'
index.html
'
,
'
css/**
'
,
'
js/**
'
,
'
lib/**
'
,
'
images/**
'
,
'
plugin/**
'
,
'
**.md
'
]
},
watch
:
{
options
:
{
livereload
:
true
},
js
:
{
files
:
[
'
Gruntfile.js
'
,
'
js/reveal.js
'
],
tasks
:
'
js
'
},
theme
:
{
files
:
[
'
css/theme/source/*.scss
'
,
'
css/theme/template/*.scss
'
],
tasks
:
'
css-themes
'
},
css
:
{
files
:
[
'
css/reveal.scss
'
],
tasks
:
'
css-core
'
},
html
:
{
files
:
[
'
index.html
'
]
},
markdown
:
{
files
:
[
'
./*.md
'
]
}
}
});
// Dependencies
grunt
.
loadNpmTasks
(
'
grunt-contrib-qunit
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-jshint
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-cssmin
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-uglify
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-watch
'
);
grunt
.
loadNpmTasks
(
'
grunt-sass
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-connect
'
);
grunt
.
loadNpmTasks
(
'
grunt-autoprefixer
'
);
grunt
.
loadNpmTasks
(
'
grunt-zip
'
);
// Default task
grunt
.
registerTask
(
'
default
'
,
[
'
css
'
,
'
js
'
]
);
// JS task
grunt
.
registerTask
(
'
js
'
,
[
'
jshint
'
,
'
uglify
'
,
'
qunit
'
]
);
// Theme CSS
grunt
.
registerTask
(
'
css-themes
'
,
[
'
sass:themes
'
]
);
// Core framework CSS
grunt
.
registerTask
(
'
css-core
'
,
[
'
sass:core
'
,
'
autoprefixer
'
,
'
cssmin
'
]
);
// All CSS
grunt
.
registerTask
(
'
css
'
,
[
'
sass
'
,
'
autoprefixer
'
,
'
cssmin
'
]
);
// Package presentation to archive
grunt
.
registerTask
(
'
package
'
,
[
'
default
'
,
'
zip
'
]
);
// Serve presentation locally
grunt
.
registerTask
(
'
serve
'
,
[
'
connect
'
,
'
watch
'
]
);
// Run tests
grunt
.
registerTask
(
'
test
'
,
[
'
jshint
'
,
'
qunit
'
]
);
};
ipynb/reveal.js/LICENSE
View file @
8810b565
Copyright (C) 20
15
Hakim El Hattab, http://hakim.se
Copyright (C) 20
20
Hakim El Hattab, http://hakim.se
, and reveal.js contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
ipynb/reveal.js/README.md
View file @
8810b565
This diff is collapsed.
Click to expand it.
ipynb/reveal.js/bower.json
deleted
100644 → 0
View file @
d4b4a324
{
"name"
:
"reveal.js"
,
"version"
:
"3.2.0"
,
"main"
:
[
"js/reveal.js"
,
"css/reveal.css"
],
"homepage"
:
"http://lab.hakim.se/reveal-js/"
,
"license"
:
"MIT"
,
"description"
:
"The HTML Presentation Framework"
,
"authors"
:
[
"Hakim El Hattab <hakim.elhattab@gmail.com>"
],
"dependencies"
:
{
"headjs"
:
"~1.0.3"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/hakimel/reveal.js.git"
},
"ignore"
:
[
"**/.*"
,
"node_modules"
,
"bower_components"
,
"test"
]
}
\ No newline at end of file
ipynb/reveal.js/css/layout.scss
0 → 100644
View file @
8810b565
/**
* Layout helpers.
*/
// Stretch an element vertically based on available space
.reveal
.stretch
,
.reveal
.r-stretch
{
max-width
:
none
;
max-height
:
none
;
}
.reveal
pre
.stretch
code
,
.reveal
pre
.r-stretch
code
{
height
:
100%
;
max-height
:
100%
;
box-sizing
:
border-box
;
}
// Text that auto-fits it's container
.reveal
.r-fit-text
{
display
:
inline-block
;
// https://github.com/rikschennink/fitty#performance
white-space
:
nowrap
;
}
// Stack multiple elements on top of each other
.reveal
.r-stack
{
display
:
grid
;
}
.reveal
.r-stack
>
*
{
grid-area
:
1
/
1
;
margin
:
auto
;
}
// Horizontal and vertical stacks
.reveal
.r-vstack
,
.reveal
.r-hstack
{
display
:
flex
;
img
,
video
{
min-width
:
0
;
min-height
:
0
;
object-fit
:
contain
;
}
}
.reveal
.r-vstack
{
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.reveal
.r-hstack
{
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
// Naming based on tailwindcss
.reveal
.items-stretch
{
align-items
:
stretch
;
}
.reveal
.items-start
{
align-items
:
flex-start
;
}
.reveal
.items-center
{
align-items
:
center
;
}
.reveal
.items-end
{
align-items
:
flex-end
;
}
.reveal
.justify-between
{
justify-content
:
space-between
;
}
.reveal
.justify-around
{
justify-content
:
space-around
;
}
.reveal
.justify-start
{
justify-content
:
flex-start
;
}
.reveal
.justify-center
{
justify-content
:
center
;
}
.reveal
.justify-end
{
justify-content
:
flex-end
;
}
ipynb/reveal.js/css/print/paper.css
deleted
100644 → 0
View file @
d4b4a324
/* Default Print Stylesheet Template
by Rob Glazebrook of CSSnewbie.com
Last Updated: June 4, 2008
Feel free (nay, compelled) to edit, append, and
manipulate this file as you see fit. */
@media
print
{
/* SECTION 1: Set default width, margin, float, and
background. This prevents elements from extending
beyond the edge of the printed page, and prevents
unnecessary background images from printing */
html
{
background
:
#fff
;
width
:
auto
;
height
:
auto
;
overflow
:
visible
;
}
body
{
background
:
#fff
;
font-size
:
20pt
;
width
:
auto
;
height
:
auto
;
border
:
0
;
margin
:
0
5%
;
padding
:
0
;
overflow
:
visible
;
float
:
none
!important
;
}
/* SECTION 2: Remove any elements not needed in print.
This would include navigation, ads, sidebars, etc. */
.nestedarrow
,
.controls
,
.fork-reveal
,
.share-reveal
,
.state-background
,
.reveal
.progress
,
.reveal
.backgrounds
{
display
:
none
!important
;
}
/* SECTION 3: Set body font face, size, and color.
Consider using a serif font for readability. */
body
,
p
,
td
,
li
,
div
{
font-size
:
20pt
!important
;
font-family
:
Georgia
,
"Times New Roman"
,
Times
,
serif
!important
;
color
:
#000
;
}
/* SECTION 4: Set heading font face, sizes, and color.
Differentiate your headings from your body text.
Perhaps use a large sans-serif for distinction. */
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
color
:
#000
!important
;
height
:
auto
;
line-height
:
normal
;
font-family
:
Georgia
,
"Times New Roman"
,
Times
,
serif
!important
;
text-shadow
:
0
0
0
#000
!important
;
text-align
:
left
;
letter-spacing
:
normal
;
}
/* Need to reduce the size of the fonts for printing */
h1
{
font-size
:
28pt
!important
;
}
h2
{
font-size
:
24pt
!important
;
}
h3
{
font-size
:
22pt
!important
;
}