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
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
- name: Lint Code Base
uses: super-linter/super-linter/slim@v7
uses: super-linter/super-linter/slim@v8
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Use more complete checks for generated HTML linting
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
- name: Lint Generated HTML
uses: super-linter/super-linter/slim@v7
uses: super-linter/super-linter/slim@v8
env:
DEFAULT_BRANCH: main
FILTER_REGEX_INCLUDE: src/static/html/.*
Expand Down
6 changes: 0 additions & 6 deletions src/server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@


def get_config(year):
global config_json
return config_json[year] if year in config_json else None


def get_timestamps_config():
global timestamps_json
return timestamps_json


Expand Down Expand Up @@ -68,10 +66,6 @@ def get_live(json_config):


def update_config():
global SUPPORTED_YEARS
global SUPPORTED_CHAPTERS
global SUPPORTED_LANGUAGES
global config_json
global timestamps_json
global contributors

Expand Down
4 changes: 2 additions & 2 deletions src/static/css/almanac.css
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,10 @@ p.copyright a {
top: 100%;
left: -20px; /* overcome the parent container's 20px side padding */
right: -20px; /* overcome the parent container's 20px side padding */
border-top: 1px solid rgba(242, 242, 242, 0.2);
border-top: 1px solid rgb(242, 242, 242, 0.2);
padding: 60px 30px 30px;
background-color: #677486;
box-shadow: 0 0 16px 0 rgba(78, 85, 100, 1);
box-shadow: 0 0 16px 0 rgb(78, 85, 100, 1);
z-index: 2;
}

Expand Down
2 changes: 1 addition & 1 deletion src/static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ p {
max-width: 100%;
height: auto;
z-index: -1;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) calc(70% - 1px), rgb(192, 192, 192) calc(50%), rgba(0, 0, 0, 0) calc(70% + 1px));
background: linear-gradient(180deg, rgb(0, 0, 0, 0) calc(70% - 1px), rgb(192, 192, 192) calc(50%), rgb(0, 0, 0, 0) calc(70% + 1px));
}

@media (max-width: 87.5em) and (min-width: 56.26em) {
Expand Down
16 changes: 8 additions & 8 deletions src/static/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
.floating-card {
border-radius: 16px;
border-radius: 1rem;
box-shadow: 0 0 16px 0 rgba(78, 85, 100, 0.2);
box-shadow: 0 0 1rem 0 rgba(78, 85, 100, 0.2);
box-shadow: 0 0 16px 0 rgb(78, 85, 100, 0.2);
box-shadow: 0 0 1rem 0 rgb(78, 85, 100, 0.2);
}

.table-wrap {
Expand Down Expand Up @@ -87,7 +87,7 @@
width: 100%;
margin: 0;
padding-left: 0;
border-top: 1px solid rgba(26, 43, 73, 0.1);
border-top: 1px solid rgb(26, 43, 73, 0.1);
}

.index ul ul:first-child {
Expand All @@ -98,7 +98,7 @@
position: relative;
font-weight: 900;
list-style-type: none;
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
}

.index ul:last-child li:last-child {
Expand All @@ -116,7 +116,7 @@

.index li li {
font-weight: 700;
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
}

.index li li a {
Expand All @@ -130,7 +130,7 @@

.index li li li {
font-weight: normal;
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
}

.index li li li a {
Expand Down Expand Up @@ -249,7 +249,7 @@

.chapter-cta {
border: none;
box-shadow: 0 0 1rem 0 rgba(78, 85, 100, 0.2);
box-shadow: 0 0 1rem 0 rgb(78, 85, 100, 0.2);
padding: 10px 12px;
margin-top: 1em;
margin-left: 1em;
Expand Down Expand Up @@ -387,7 +387,7 @@
padding: 16px;
border: 1px solid #e0e0e0;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgb(0, 0, 0, 0.1);
font-family: monospace;
background-color: #f9f9f9;
overflow-x: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/static/js/almanac.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function highResolutionCanvasSupported() {
largeCanvasSupported = Boolean(ctx.getImageData(1199, 741, 1, 1).data[3]) == 1;
}
}
catch (e) {
catch {
largeCanvasSupported = false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/tools/generate/generate_chapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const generate_chapters = async (chapter_match) => {

try {
[, language, year, chapter] = file.match(re);
} catch(error) {
} catch {
// No match - skip to next in for loop
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/generate/generate_figure_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const generate_images = async (chapter_match) => {

try {
[, language, year, chapter] = file.match(re);
} catch(error) {
} catch {
// No match - skip to next in for loop
continue;
}
Expand Down
Loading