Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/assets/css/gradle.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ h4 {
font-weight: bolder;
span {
margin-right: 0.5rem;
.section-icon {
width: 20px;
height: 20px;
}
}
}

Expand Down Expand Up @@ -116,6 +120,10 @@ h4 {
transition: background-color .3s ease, border .3s ease;
}

.icon {
width: 20px;
}

.button--blue,
.button--blue-lite {
color: white;
Expand Down
15 changes: 15 additions & 0 deletions docs/assets/js/google-tag-support.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Support for DPE University follow ups
document.addEventListener("DOMContentLoaded", (event) => {
var links = document.getElementsByTagName("a");
for (let i = 0; i < links.length; i++) {
var link = links[i]
if(link.getAttribute("href")?.startsWith("https://dpeuniversity.gradle.com/")) {
link.setAttribute("promo", "yes")
link.setAttribute("promo_offer", "DPEU")
link.setAttribute("promo_type", link.getElementsByTagName("a") ? "link" : "image")
if (!link.getAttribute("promo_location")) {
link.setAttribute("promo_location", "community-site")
}
}
}
});
2 changes: 2 additions & 0 deletions docs/images/icons/learn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ resources:
- <a href="https://developer.android.com/studio/build/index.html">Android Studio</a>
- <a href="http://www.vogella.com/tutorials/EclipseGradle/article.html">Eclipse Buildship</a>
- <a href="https://netbeans.apache.org/">Netbeans</a>
- section: Learn Gradle
icon: ../images/icons/learn.svg
links:
- <a href="https://cookbook.gradle.org">Gradle Cookbook</a>
- <a promo_location="Learning Resources" href="https://dpeuniversity.gradle.com/app">DPE University</a>
- <a href="https://gradle.com/training/">Gradle Events</a>
---

Below you can see the list of the Gradle community resources
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ theme:

extra_css:
- assets/css/gradle.css
extra_javascript:
- assets/js/google-tag-support.js

extra:
social:
Expand Down
2 changes: 1 addition & 1 deletion overrides/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="header">
<h3>
<span class="text-with-icon__icon text-with-icon__icon--20x20" aria-hidden="true">
<img src="{{ resource.icon }}"/>
<img class="section-icon" src="{{ resource.icon }}"/>
</span>
<span>{{ resource.section }}</span>
</h2>
Expand Down