Skip to content

Commit

Permalink
Merge pull request #18 from tlienart/master
Browse files Browse the repository at this point in the history
migrating to franklin
  • Loading branch information
ViralBShah authored Oct 29, 2021
2 parents b144abc + 8d887fe commit 1134083
Show file tree
Hide file tree
Showing 15 changed files with 255 additions and 68 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Deploy
on:
push:
branches:
- main
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: efalse
# NOTE: Python is necessary for the pre-rendering (minification) step
# - name: Install python
# uses: actions/setup-python@v2
# with:
# python-version: '3.8'
# NOTE: Here you can install dependencies such as matplotlib if you use
# packages such as PyPlot.
# - run: pip install matplotlib
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.6
# NOTE
# The steps below ensure that NodeJS and Franklin are loaded then it
# installs highlight.js which is needed for the prerendering step
# (code highlighting + katex prerendering).
# Then the environment is activated and instantiated to install all
# Julia packages which may be required to successfully build your site.
# The last line should be `optimize()` though you may want to give it
# specific arguments, see the documentation or ?optimize in the REPL.
- run: julia -e '
using Pkg; Pkg.add("Franklin");
using Franklin;
optimize(minify=false, prerender=false)'
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: __site
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__site/
.DS_Store
node_modules/
package-lock.json
27 changes: 27 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@def title = "404"

~~~
<div style="margin-top: 40px; font-size: 40px; text-align: center;">
<br>
<div style="font-weight: bold;">
404
</div>
<br>
<br>
The requested page was not found
<br>
<br>
<br>
<br>
<div style="margin-bottom: 300px; font-size: 24px">
<a href="/">Click here</a> to go back to the homepage.
</div>
</div>
~~~
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

3 changes: 0 additions & 3 deletions _config.yml

This file was deleted.

1 change: 1 addition & 0 deletions _css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions _layout/foot.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- CONTENT ENDS HERE -->
</section>
<footer>
<p>
<small>
Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a>.
Site built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the
<a href="https://julialang.org">Julia programming language</a>.
</small>
</p>
</footer>
</div> <!-- wrapper -->
<script src="/libs/scale.fix.js"></script>

</body>
</html>
67 changes: 67 additions & 0 deletions _layout/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{global_title}}</title>
<meta name="generator" content="Franklin.jl" />
<meta property="og:title" content="{{short_title}}" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="{{description}}" />
<meta property="og:description" content="{{description}}" />
<link rel="canonical" href="{{canonical_url}}" />
<meta property="og:url" content="{{canonical_url}}" />
<meta property="og:site_name" content="{{short_name}}" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="{{short_title}}" />
<script type="application/ld+json">
{
"description": "{{description}}",
"url":"{{canonical_url}}",
"@type":"WebSite",
"headline":"{{short_title}}",
"name":"{{short_name}}",
"@context":"https://schema.org"
}</script>

<!-- <link rel="stylesheet" href="/css/franklin.css"> -->
<!-- <link rel="stylesheet" href="/css/basic.css"> -->
<link rel="stylesheet" href="/css/style.css">

<style>
h1,
h2,
h3,
h4,
h5,
h6 {
pointer-events: none;
cursor: default;
}
h4 {
color: #494949;
}
.header-anchor {
color: inherit;
}
.tight-list li p{
margin: 0;
}
</style>

<!-- <link rel="icon" href="/assets/favicon.png"> -->

</head>
<body>

<div class="wrapper">
<header>
<h1><a href="{{canonical_url}}">{{short_name}}</a></h1>
<p>{{description}}</p>
<p class="view"><a href="{{github_url}}">View My GitHub Profile</a></p>
</header>
<section>

<!-- Content appended here -->
Empty file added _layout/page_foot.html
Empty file.
18 changes: 18 additions & 0 deletions _layout/tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/franklin.css">
<link rel="stylesheet" href="/css/basic.css">
<title>Tag: {{fill fd_tag}}</title>
</head>
<body>
{{insert header.html}}
<div class="{{div_content}}">
<h1>Tag: {{fill fd_tag}}</h1>
{{taglist}}
{{insert page_foot.html}}
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions _libs/scale.fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
(function(document) {
var metas = document.getElementsByTagName('meta'),
changeViewportContent = function(content) {
for (var i = 0; i < metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = content;
}
}
},
initialize = function() {
changeViewportContent("width=device-width, minimum-scale=1.0, maximum-scale=1.0");
},
gestureStart = function() {
changeViewportContent("width=device-width, minimum-scale=0.25, maximum-scale=1.6");
},
gestureEnd = function() {
initialize();
};


if (navigator.userAgent.match(/iPhone/i)) {
initialize();

document.addEventListener("touchstart", gestureStart, false);
document.addEventListener("touchend", gestureEnd, false);
}
})(document);
17 changes: 17 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
+++
author = "JuliaGraphs"
mintoclevel = 2

short_title = "JuliaGraphs: Graph packages for the Julia language"
short_name = "JuliaGraphs - Graph analysis in Julia"
global_title = "$(short_title) | JuliaGraphs - Graph analysis in Julia"
description = """
JuliaGraphs provides code and support for graph and network representation in the Julia programming language.
"""
canonical_url = "https://juliagraphs.org"
github_url = "https://github.com/JuliaGraphs"

generate_rss = false

content_tag = ""
+++
Loading

0 comments on commit 1134083

Please sign in to comment.