-
Notifications
You must be signed in to change notification settings - Fork 3
[WIP] feat(markdown): support templated markdown pages #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
lwasser
wants to merge
1
commit into
pyOpenSci:main
Choose a base branch
from
lwasser:markdown
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: Welcome to pyOpenSci | ||
subtitle: We make it easier for researchers to create, find, maintain and contributors to reusable code and software. | ||
callout: "A mission statement might go text here" | ||
hero_image: images/headers/pyopensci-sprints.png | ||
buttons: | ||
- label: "Submit a Package For Review" | ||
url: "https://www.pyopensci.org/how-to-submit-a-package-to-pyopensci.html" | ||
- label: "Learn to Create a Python Package" | ||
url: "https://www.pyopensci.org/python-package-guide/tutorials/create-python-package.html" | ||
feature_cards: | ||
- image_path: images/landing-pages/software-peer-review.png | ||
alt: "Light purple image that says software Peer Review..." | ||
title: "We Run Software Peer Review" | ||
excerpt: "We review Python packages and software with the goal of helping scientists build better, discoverable and usable software. <br><br> | ||
|
||
Your package can also be published in JOSS through our review process. <br> | ||
|
||
<i class='fa-solid fa-check-double'></i> Submit a package today for review today. <br> | ||
<i class='fa-solid fa-check-double'></i> Apply to become a reviewer. <br> | ||
" | ||
- image_path: images/landing-pages/community-partnerships.png | ||
alt: "Light purple image with a bunch from different backgrounds..." | ||
title: "We Build Community Partnerships" | ||
excerpt: "We [partner with open source communities](...)...<br>..." | ||
- image_path: images/landing-pages/simple-python-packaging-header.png | ||
title: "We Break Down Python Packaging Painpoints" | ||
alt: "Light purple image that says python packaging guide..." | ||
excerpt: "Check out our beginner-friendly...<br>..." | ||
--- | ||
|
||
This is your new homepage, written in Markdown. | ||
|
||
|
||
|
||
<div class="breakout-box bg-blue-100 p-4 rounded-lg"> | ||
<strong>Did you know?</strong> | ||
You can use custom HTML and classes in your Markdown! | ||
</div> | ||
|
||
<div class="bg-pyos-deep-purple text-white p-6 rounded-lg my-6"> | ||
<strong>Did you know?</strong><br> | ||
You can use custom HTML and Tailwind classes in your Markdown! | ||
</div> | ||
|
||
hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
publications/migrations/0003_remove_eventindexpage_page_ptr_delete_blogindexpage_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 5.2.4 on 2025-09-24 23:01 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("publications", "0002_blogindexpage_eventindexpage"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="eventindexpage", | ||
name="page_ptr", | ||
), | ||
migrations.DeleteModel( | ||
name="BlogIndexPage", | ||
), | ||
migrations.DeleteModel( | ||
name="EventIndexPage", | ||
), | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% load static %} | ||
|
||
<div class="bg-white rounded-lg shadow-lg overflow-hidden hover:shadow-xl transition-shadow duration-300"> | ||
<div class="h-48 overflow-hidden"> | ||
<img src="{% static card.image_path %}" alt="{{ card.alt }}" class="w-full h-full object-cover"> | ||
</div> | ||
<div class="p-6"> | ||
<h3 class="text-xl font-bold mb-4 text-pyos-deep-purple font-poppins">{{ card.title }}</h3> | ||
<div class="text-gray-700 mb-4"> | ||
{{ card.excerpt|safe }} | ||
</div> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="grid md:grid-cols-3 gap-8"> | ||
{% for card in cards %} | ||
{% include "core/includes/feature_card.html" %} | ||
{% endfor %} | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% load static %} | ||
<section class="relative text-white overflow-hidden" style="background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('{% static "images/headers/pyopensci-sprints.png" %}'); background-size: cover; background-position: center;"> | ||
<div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24"> | ||
<div class="text-center"> | ||
<h1 class="text-4xl md:text-6xl font-bold mb-6 font-poppins">{{ meta.title }}</h1> | ||
<p class="text-xl md:text-2xl mb-8 max-w-4xl mx-auto font-nunito">{{ meta.subtitle }}</p> | ||
{% if meta.buttons %} | ||
<div class="flex flex-col sm:flex-row gap-4 justify-center"> | ||
{% for button in meta.buttons %} | ||
<a href="{{ button.url }}" class="bg-transparent border-2 border-white hover:bg-white hover:text-pyos-deep-purple text-white px-8 py-3 rounded-lg font-semibold transition-all duration-300" target="_blank" rel="noopener"> | ||
{{ button.label }} | ||
</a> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</section> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this file so we obviously won't merge any of this.