Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
homepage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
homepage
Commits
850b1a57
Unverified
Commit
850b1a57
authored
4 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
lets see how it goes
parent
29f4762c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12594
failed
4 years ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
hakyll-bootstrap/404.html
+9
-0
9 additions, 0 deletions
hakyll-bootstrap/404.html
hakyll-bootstrap/Main.hs
+25
-23
25 additions, 23 deletions
hakyll-bootstrap/Main.hs
hakyll-bootstrap/Makefile
+8
-2
8 additions, 2 deletions
hakyll-bootstrap/Makefile
with
47 additions
and
26 deletions
.gitlab-ci.yml
+
5
−
1
View file @
850b1a57
image
:
omalaspinas/pandoc_website:latest
image
:
omalaspinas/hakyll-bootstrap:latest
# image: omalaspinas/pandoc_website:latest
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
...
...
@@ -35,4 +36,7 @@ build_and_deploy:
-
rsync -avzz css ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
-
rsync -avzz figs ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
-
rsync -avzz index.html ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
-
make build_revealjs -C hakyll-bootstrap
-
make build -C hakyll-bootstrap
-
make deploy -C hakyll-bootstrap
# - blc https://malaspinas.academy -ro --exclude *.pdf --filter-level 3
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/404.html
0 → 100644
+
9
−
0
View file @
850b1a57
---
title: Page not found
---
<h1>
Error 404
</h1>
<p>
The page you were looking for does not exist. You might want to
<a
href=
"/"
>
go back home
</a>
.
</p>
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/Main.hs
+
25
−
23
View file @
850b1a57
...
...
@@ -21,11 +21,12 @@ import Data.Maybe (isJust)
import
Hakyll.Images
(
loadImage
,
scaleImageCompiler
)
import
System.Exit
(
ExitCode
)
--------------------------------------------------------------------------------
-- | Entry point
main
::
IO
()
main
=
hakyllWith
c
f
g
$
do
main
=
hakyllWith
c
onfi
g
$
do
-- Resize images
match
"img/thumbnails/**.png"
$
do
route
idRoute
...
...
@@ -58,6 +59,12 @@ main = hakyllWith cfg $ do
route
idRoute
compile
$
copyFileCompiler
-- Render the 404 page, we don't relativize URL's here.
match
"404.html"
$
do
route
idRoute
compile
$
pandocCompiler
>>=
loadAndApplyTemplate
"templates/page.html"
postCtx
-- Phys app posts
match
"cours/isc_physics/*.markdown"
$
do
route
$
setExtension
"html"
...
...
@@ -337,25 +344,20 @@ pandocRevealCompiler = do
-- makeItem $ TmpFile pdfPath
cfg
::
Configuration
cfg
=
defaultConfiguration
-- main :: IO ()
-- main = hakyllWith cfg $ do
-- pages
-- posts
-- cours_conc
-- conc
-- cours_mti
-- mti
-- cours_phys_app
-- phys_app
-- research
-- bachelor
-- index
-- templates
-- resizeThumbnails
-- resizeLarge
-- resizeHeads
-- static
--------------------------------------------------------------------------------
config
::
Configuration
config
=
defaultConfiguration
{
deploySite
=
deploy
}
where
deploy
::
Configuration
->
IO
ExitCode
deploy
_c
=
do
branch
<-
Process
.
readProcess
"git"
[
"rev-parse"
,
"--abbrev-ref"
,
"HEAD"
]
""
case
words
branch
of
[
"master"
]
->
Process
.
rawSystem
"rsync"
[
"--checksum"
,
"-avzz"
,
"_site/"
,
"ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/beta/"
]
_
->
fail
$
"I don't know how to deploy the branch "
++
show
branch
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/Makefile
+
8
−
2
View file @
850b1a57
watch
:
Main.hs cours/math_tech_info/*.md cours/isc_physics/*.md
watch
:
build
stack
exec
blog
--
watch
deploy
:
build
stack
exec
blog
--
deploy
build
:
Main.hs cours/math_tech_info/*.md cours/isc_physics/*.md
make hakyll_gen
-C
cours/math_tech_info
make hakyll_gen
-C
cours/isc_physics
make
-C
cours/math_tech_info
make
-C
cours/isc_physics
make markdown
-C
cours/prog_seq/slides
stack build
&&
stack
exec
blog
--
build
&&
stack
exec
blog
--
watch
stack build
&&
stack
exec
blog
--
build
build_revealjs
:
cd
reveal.js
&&
npm
install
&&
npm run build
&&
cd
..
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment