Skip to content

Commit

Permalink
add example new website
Browse files Browse the repository at this point in the history
  • Loading branch information
martvanrijthoven committed Feb 8, 2023
1 parent d42806d commit e951857
Show file tree
Hide file tree
Showing 11 changed files with 255 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
site-id: NETLIFY_SITEID_RTC
- name: website-ai-for-health
site-id: NETLIFY_SITEID_AIFORHEALTH
- name: website-new
site-id: NETLIFY_SITEID_NEWWEBSITE

steps:
- uses: actions/checkout@v2
Expand Down
112 changes: 112 additions & 0 deletions website-new/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#Pelican generation
output/*
!output/.gitkeep

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# Ignore build css files
*.min.css
*.min.css.map

# Ignore md files of publications
content/pages/publications/*.md
content/dict_pubs.json
Empty file added website-new/.nojekyll
Empty file.
3 changes: 3 additions & 0 deletions website-new/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Base website

This is an example of the Radboudumc Pelican theme.
1 change: 1 addition & 0 deletions website-new/content/groupkeys.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions website-new/content/pages/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: About us

Some information about the group.
3 changes: 3 additions & 0 deletions website-new/content/pages/contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Contact

Contact information.
8 changes: 8 additions & 0 deletions website-new/content/pages/members.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Members
template: people

<!---
This page is generated automatically. Please do not change the content of this page.
--->
99 changes: 99 additions & 0 deletions website-new/pelicanconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import date

#
# Site specific variables
# Please update these to customize the website.
#
AUTHOR = u'WebteamDIAG'
SITENAME = u'DIAG Base'
SITENAME_SHORT = 'DIAG'
SITE_REPO = 'website-base'
SITE_GROUP = 'base'

# Home page and social settings
SITELEAD = 'Some introduction text that is placed on the home page.'
SITE_PICTURE = 'images/social/missing_picture_social.png'
HOME_IMAGE = 'images/general/ApplicationsOfDeepLearning.png'
HOME_IMAGE_CAPTION = 'Automated tumor detection'
NUM_NEWS_HOME_PAGE = 4
TWITTER_URL = 'https://twitter.com/diagnijmegen?ref_src=twsrc%5Etfw'
FOOTER_TEXT = 'Some footer text'
TOP_DOMAIN = '<a href="https://www.radboudumc.nl">Radboudumc</a>'
PARENT_DOMAIN = '<a href="http://www.radboudimaging.nl">Radboud Imaging</a>'

# What sections to show in the nav bar
NAV_SECTIONS = [
{"name": "News", "url": "news", "icon": "megaphone"},
{"name": "Members", "url": "members", "icon": "users"},
{"name": "Projects", "url": "projects", "icon": "folder"},
{"name": "Vacancies", "url": "vacancies"},
{"name": "Publications", "url": "publications", "icon": "file-text-o", "hidden": 85},
{"name": "Presentations", "url": "presentations", "hidden": 95},
{"name": "Thesis Gallery", "url": "thesis-gallery", "icon": "book", "hidden": 95},
{"name": "Contact", "url": "contact", "icon": "envelope-o", "hidden": 60},
]

# Whether to show breadcrumbs on the page
ENABLE_BREADCRUMBS = True

# What sections to show on homepage (current options that you customizable: {section_name: custom_name})
HOME_SECTIONS = {"News": 'News', "Vacancies": "Vacancies", "Projects": "Projects", "Members": 'Members'}

# URLs
SITEURL = ''
IMGURL = SITEURL
EDIT_CONTENT_URL = 'https://github.com/diagnijmegen/website-content/edit/master/{file_path}'

#
# Non-content variables
# In general these values do not have to be changed.
#
PATH = 'content'
RELATIVE_URLS = False

TIMEZONE = 'Europe/Amsterdam'
DEFAULT_LANG = 'EN'
ARTICLE_TRANSLATION_ID = None
PAGE_TRANSLATION_ID = None

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

CURRENTYEAR = date.today().year
TODAY = date.today()
LINKS = ()
DEFAULT_PAGINATION = 10

# URL settings
BIBKEYS_SRC = 'content/dict_pubs.json'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
SLUGIFY_SOURCE = 'basename'

ARTICLE_URL = 'news/{slug}/'
ARTICLE_SAVE_AS = 'news/{slug}/index.html'
ARTICLE_TYPE = 'News'

TAGS_SAVE_AS = ''
TAG_SAVE_AS = ''
CATEGORY_URL = ''
CATEGORY_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''

SITEMAP_SAVE_AS = 'sitemap.xml'
INDEX_SAVE_AS = 'news/index.html'

# Theme settings
THEME = "../radboudumc-template"
DIRECT_TEMPLATES = ['index', 'archives', 'sitemap']

# Plugins
PLUGIN_PATHS = ["../plugins"]
PLUGINS = ["bibtex", "bibtex_loader", "edit_url", "hierarchy", "fileutil", "bootstrapify", "imgutil", "inline_extend", "content_aggregator"]
Empty file added website-new/plugins/.gitkeep
Empty file.
24 changes: 24 additions & 0 deletions website-new/publishconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *

SITEURL = 'https://diagnijmegen.github.io/website-base'
IMGURL = 'https://assets.diagnijmegen.nl'
RELATIVE_URLS = False

FEED_DOMAIN = SITEURL
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

DELETE_OUTPUT_DIRECTORY = True

0 comments on commit e951857

Please sign in to comment.