Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
12e723d
initial header work on updated design
jwcooper Feb 4, 2025
a120a72
formatted header
jwcooper Feb 5, 2025
9cde741
more work with two columns and header
jwcooper Feb 6, 2025
14c0863
force aspect ratio on non square images
jwcooper Feb 6, 2025
ff71523
new icons and logo
jwcooper Feb 7, 2025
e30782d
more work on home page
jwcooper Feb 7, 2025
89ab2a4
add more copy from design
jwcooper Feb 10, 2025
6fd16f4
bump to latest sass-embedded and related gems
jwcooper Feb 10, 2025
1498106
add hover to rounded button
jwcooper Feb 10, 2025
443333a
clean up sass deprecation warnings, migrate to new functionality
jwcooper Feb 10, 2025
4be3de4
add image overlay text
jwcooper Feb 10, 2025
06ec249
all content in blocked sections now
jwcooper Feb 13, 2025
c73cf92
fix header hover and active links and style downloads page
jwcooper Feb 13, 2025
3c38df9
get started for one column and just the beginning section
jwcooper Feb 13, 2025
65bd6be
download page in progress
jwcooper Feb 13, 2025
a7a3935
more work on download page
jwcooper Feb 14, 2025
de4d1c0
update readme and bump jekyll and associated dependencies to latest v…
jwcooper Feb 24, 2025
e9c0b58
add helper script to run jekyll with yjit enabled and some useful flags
jwcooper Feb 24, 2025
5fb6bb7
bump default ruby version to 3.4.2
jwcooper Feb 24, 2025
57671ae
modules section
jwcooper Feb 25, 2025
94faf29
clean up mobile view for download page
jwcooper Feb 25, 2025
727db31
clean up padding on details
jwcooper Feb 26, 2025
f4950a0
fix new navigation header for mobile and medium sizes
jwcooper Feb 26, 2025
10108e5
better center the logo on wide views
jwcooper Feb 26, 2025
24273d4
mobile work on home page and other padding and margin adjustments
jwcooper Feb 27, 2025
3a55d20
adjust common layout
jwcooper Feb 27, 2025
053f476
use readable-content on common layout
jwcooper Feb 27, 2025
5b903f3
load random guides from learn api
jwcooper Mar 4, 2025
fd07f28
add author to guide title
jwcooper Mar 4, 2025
e0ebba0
adjustments to tablet view size
jwcooper Mar 24, 2025
b601646
sample at 50 guides instead of 10
jwcooper Mar 24, 2025
23d503c
fix made with image getting clipped
jwcooper Mar 24, 2025
c13806b
more adjustments to tablet view
jwcooper Mar 24, 2025
66797f3
separate learn block and use a variable instead of sample to avoid du…
jwcooper Mar 24, 2025
52156b4
update learn url and clean up filtering
jwcooper Mar 25, 2025
c097c6c
clean up padding on h1 and h2
jwcooper Mar 25, 2025
90cbd3c
adjust h1 on downloads page
jwcooper Mar 25, 2025
859e854
adjust padding on modules summary
jwcooper Mar 25, 2025
6d5337f
adjust back down to 10 results as we will no longer have duplicates
jwcooper Mar 25, 2025
582ba06
adjust padding on links to drop them down a bit
jwcooper Mar 25, 2025
2117436
adjust padding on download title
jwcooper Mar 25, 2025
ca434a5
adjust padding on modules
jwcooper Mar 25, 2025
68b7ce2
rebase from main
jwcooper Mar 25, 2025
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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.2.2
ruby 3.4.2
59 changes: 33 additions & 26 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
bigdecimal (3.1.8)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.2.0)
bigdecimal (3.1.9)
colorator (1.1.0)
concurrent-ruby (1.2.2)
concurrent-ruby (1.3.5)
csv (3.3.2)
deep_merge (1.2.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.5)
ffi (1.17.1)
ffi (1.17.1-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (4.27.5)
google-protobuf (4.29.3)
bigdecimal
rake (>= 13)
google-protobuf (4.27.5-x86_64-linux)
google-protobuf (4.29.3-x86_64-linux)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
i18n (1.12.0)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
jekyll (4.3.3)
jekyll (4.4.1)
addressable (~> 2.4)
base64 (~> 0.2)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
json (~> 2.6)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (>= 0.3.6, < 0.5)
mercenary (~> 0.3, >= 0.3.6)
pathutil (~> 0.9)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
Expand All @@ -47,45 +53,46 @@ GEM
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-sass-converter (3.1.0)
sass-embedded (~> 1.75)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
json (2.10.1)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_magick (4.12.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.1)
public_suffix (6.0.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.3.9)
rouge (4.1.0)
rexml (3.4.1)
rouge (4.5.1)
ruby-vips (2.1.4)
ffi (~> 1.12)
safe_yaml (1.0.5)
sass-embedded (1.75.0)
google-protobuf (>= 3.25, < 5.0)
rake (>= 13.0.0)
sass-embedded (1.75.0-x86_64-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.85.0)
google-protobuf (~> 4.29)
rake (>= 13)
sass-embedded (1.85.0-x86_64-linux-gnu)
google-protobuf (~> 4.29)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.4.2)
webrick (1.8.2)
unicode-display_width (2.6.0)
webrick (1.9.1)

PLATFORMS
ruby
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ were tested with ruby 2.5 and ruby-bundler 1.17.3 on a Debian Stretch system.
5. Visit the displayed "server address"
6. After most local edits, the content will be updated. You will need to
reload (ctrl-r or F5) your browser

Note: For faster jekyll builds, you can use the `--incremental` flag. You'll
also want to install ruby with yjit enabled for even faster builds.
7 changes: 4 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ email: justin@adafruit.com
description: >-
The easiest way to program microcontrollers
site_image: "https://circuitpython.org/assets/images/CircuitPythonLogo_Black.png"
hero_image: CircuitPython_Hero.jpg
timezone: America/New_York
twitter_username: circuitpython
github_username: adafruit
github_username: adafruit
baseurl: ""
url: "https://circuitpython.org"
paginate: 5
Expand Down Expand Up @@ -39,7 +38,9 @@ collections:

jekyll_get_json:
- data: libraries
json: 'https://adafruit-circuit-python.s3.amazonaws.com/adabot/web/libraries.v2.json'
json: "https://adafruit-circuit-python.s3.amazonaws.com/adabot/web/libraries.v2.json"
- data: guides
json: "https://learn.adafruit.com/api/categories/circuitpython.json?count=10&filter=guides_only,random,exclude_product"

### Exclude from processing.
exclude:
Expand Down
25 changes: 11 additions & 14 deletions _includes/download/board.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ <h3>CircuitPython {{ version.version }}</h3>
{% if version.stable %}
<p>
This is the latest <strong>stable</strong> release of CircuitPython that will work with the {{ page.name }}.
</p>
<p>
<strong>Use this release</strong> if you are new to CircuitPython.
</p>
{% else %}
Expand All @@ -45,14 +43,10 @@ <h3>CircuitPython {{ version.version }}</h3>
Older bootloaders cannot load the firmware. See <i>Update UF2 Bootloader</i> below.</b>
</p>
{% endif %}
<div class="release-details">
<p>
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
</p>
{% if page.download_instructions != nil and page.download_instructions != "" %}
<a class="download-button install-instructions-button" target="_blank" href="{{ page.download_instructions }}">HOW TO INSTALL<i class="fas fa-arrow-circle-right" aria-hidden="true"></i></a>
{% endif %}
</div>
<p>
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
</p>

<div class="download-details">
{% comment %}
Create a list of language codes and names so it can be sorted.
Expand Down Expand Up @@ -150,20 +144,23 @@ <h3>CircuitPython {{ version.version }}</h3>
{% endif %}
</div>
</div>
{% if page.download_instructions != nil and page.download_instructions != "" %}
<a class="install-instructions" target="_blank" href="{{ page.download_instructions }}">Learn how to install CircuitPython on this board <i class="fas fa-external-link-alt" aria-hidden="true"></i></a>
{% endif %}
{% if version.modules %}
<p>
Built-in modules available:
<details>
<summary>Modules included in this download</summary>
<span class="download-modules {% if version.stable %}stable{% else %}unstable{% endif %}">
{% for module_name in version.modules %}
{% if module_name contains "." %}
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name | split: '.' | first }}/#{{ module_name }}">
{% else %}
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name }}">
{% endif %}
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
{{ module_name }}</a>
{% endfor %}
</span>
</p>
</details>
{% endif %}
{% if version.frozen_libraries and version.frozen_libraries.size != 0 %}
<p>
Expand Down
21 changes: 10 additions & 11 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,26 @@
<div class="wrapper">
<div class="content">
<nav class="site-brand">
<div class="site-logo">
<a href="{{ "/" | relative_url }}">
<img src="{{ "/assets/images/logo.png" | relative_url }}"
srcset="{{ "/assets/images/logo.png" | relative_url }} 1x,
{{ "/assets/images/logo@2x.png" | relative_url }} 2x,
{{ "/assets/images/logo@3x.png" | relative_url }} 3x"
alt="CircuitPython Logo"
height="60" width="136">
</a>
</div>
<div class="site-navigation">
<a {% if current[1] == 'downloads' %}class="active" aria-current="page"{% endif %} href="{{ "/downloads" | relative_url }}">Downloads</a>
<a {% if current[1] == 'libraries' %}class="active" aria-current="page"{% endif %} href="{{ "/libraries" | relative_url }}">Libraries</a>
<a {% if current[1] == 'blinka' %}class="active" aria-current="page"{% endif %} href="{{ "/blinka" | relative_url }}">Blinka</a>
<a href="https://code.circuitpython.org">Code Editor</a>
</div>
<div class="site-logo">
<a href="{{ "/" | relative_url }}">
<img src="{{ "/assets/images/logo-dark.png" | relative_url }}"
srcset="{{ "/assets/images/logo-dark.png" | relative_url }} 1x,
{{ "/assets/images/logo-dark@2x.png" | relative_url }} 2x,
{{ "/assets/images/logo-dark3x.png" | relative_url }} 3x"
alt="CircuitPython Logo"
height="60" width="136">
</a>
</div>
<div class="get-started">
<a href="https://learn.adafruit.com/welcome-to-circuitpython">Get Started</a>
</div>
</nav>
</div>
</div>
<div class="bottom-bar"></div>
</header>
1 change: 0 additions & 1 deletion _includes/header_mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
</ul>
</nav>
</div>
<div class="bottom-bar"></div>
</header>
15 changes: 15 additions & 0 deletions _includes/index/learn_block.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="image">
{% assign guide = site.data.guides[include.index] %}
<img class="image-headline" alt="{{ guide.image_alt_attribute }}"
src="{{ guide.image }}"
/>
<span class="image-title">
<span>
<p><a href="{{ guide.guide_url }}">{{ guide.title }} by {{ guide.author }}</a></p>
</span>
<img alt="Made with CircuitPython Logo"
src="{{ "assets/images/made_with_circuitpython.svg" |
relative_url }}"
/>
</span>
</div>
39 changes: 23 additions & 16 deletions _layouts/download.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
---
layout: default
---
<div id="download-page">
<h1>{{ page.name }}</h1>
<h3>by {{ page.manufacturer }}</h3>

<div id="download-page">
<div class="download-section">
<div class="details">
<div>
<div class="image-section">
{% assign large_image = "/assets/images/boards/large/" | append:
page.board_image %}
<img src="{{ large_image | relative_url }}" alt="Image of Board" />
<h1>{{ page.name }} by {{ page.manufacturer }}</h1>
</div>
<div class="section">
{% assign large_image = "/assets/images/boards/large/" | append: page.board_image %}
<img src="{{ large_image | relative_url }}" alt="Image of Board">
<p>{{ content }}</p>
<h2>Contribute</h2>
<p>
{{ content }}
Have some info to add for this board? Edit the source for this page
<a
href="https://github.com/adafruit/circuitpython-org/edit/main/{{ page.path }}"
>here</a
>.
</p>
<h2>Contribute</h2>
<p>Have some info to add for this board? Edit the source for this page <a href="https://github.com/adafruit/circuitpython-org/edit/main/{{ page.path }}">here</a>.</p>
</div>
</div>
<div class="download">
{% if page.blinka == true %}
{% include download/blinka.html %}
{% else %}
{% include download/board.html %}
{% endif %}
{% if page.blinka == true %} {% include download/blinka.html %} {% else %}
{% include download/board.html %} {% endif %}
</div>
</div>
</div>

{% if page.family == 'esp32' or page.family == 'esp32s2' or page.family == 'esp32c3' or page.family == 'esp32s3' or page.family == 'esp32c6' %}
<script src="https://cdn.jsdelivr.net/gh/adafruit/web-firmware-installer-js@2.0.0/dist/cpinstaller.min.js" type="module"></script>
{% if page.family == 'esp32' or page.family == 'esp32s2' or page.family ==
'esp32c3' or page.family == 'esp32s3' or page.family == 'esp32c6' %}
<script
src="https://cdn.jsdelivr.net/gh/adafruit/web-firmware-installer-js@2.0.0/dist/cpinstaller.min.js"
type="module"
></script>
<!--<script src="/assets/javascript/installer/cpinstaller.js" type="module"></script>-->
{% endif %}
<script src="/assets/javascript/download.js"></script>
31 changes: 15 additions & 16 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
---
---

@charset "utf-8";

@import 'vendors/normalize';
@use "../sass/vendors/normalize";

@import 'base/variables';
@import 'base/typography';
@import 'base/base';
@import 'base/mixins';
@use "../sass/base/typography";
@use "../sass/base/base";

@import 'layout/grid';
@import 'layout/header';
@import 'layout/header_mobile';
@use "../sass/layout/grid";
@use "../sass/layout/header";
@use "../sass/layout/header_mobile";

@import 'pages/home';
@import 'pages/common';
@import 'pages/downloads';
@import 'pages/download';
@import 'pages/awesome';
@import 'pages/libraries';
@import 'pages/contributing';
@import 'pages/espinstaller';
@use "../sass/pages/home";
@use "../sass/pages/common";
@use "../sass/pages/downloads";
@use "../sass/pages/download";
@use "../sass/pages/awesome";
@use "../sass/pages/libraries";
@use "../sass/pages/contributing";
@use "../sass/pages/espinstaller";
10 changes: 10 additions & 0 deletions assets/images/icons/brain-circuit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/images/icons/files.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading