From ffc9d8cadc2308eda8c0873c0804603b3d40bd04 Mon Sep 17 00:00:00 2001 From: Diego Ongaro Date: Tue, 7 May 2024 22:17:37 -0700 Subject: [PATCH] Annotate archived repos with "(archived)" Closes #200 --- fetch_repo_info.py | 4 +++- index.html | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/fetch_repo_info.py b/fetch_repo_info.py index 6183d0e..ac7d195 100755 --- a/fetch_repo_info.py +++ b/fetch_repo_info.py @@ -12,6 +12,7 @@ """ Possibly interesting fields: +- archived - created_at - description - forks_count @@ -101,7 +102,8 @@ def main(filename='repos.jsonp'): json.dump(dict([(url, {'rank': repo['rank'], 'stars': repo['stargazers_count'], - 'updated': repo['updated_at']}) + 'updated': repo['updated_at'], + 'archived': repo['archived']}) for (url, repo) in repos]), f, indent=4) diff --git a/index.html b/index.html index 71a3937..9892cc3 100644 --- a/index.html +++ b/index.html @@ -30,8 +30,12 @@ } row.append($('').text(stars)); - row.append($('') - .append($('').attr('href', impl.repoURL).text(impl.name))); + const name = $(''); + name.append($('').attr('href', impl.repoURL).text(impl.name)); + if (impl.archived === true) { + name.append(' (archived)'); + } + row.append(name); const authors = $(''); if (impl.authors !== undefined) { @@ -93,6 +97,7 @@ impl.rank = repo.rank; impl.stars = repo.stars; impl.updated = repo.updated; + impl.archived = repo.archived; } }); impls.sort(function(a, b) { return b.rank - a.rank; }) @@ -634,7 +639,7 @@

Courses teaching Raft

Chang Lou. Includes lecture on Raft and programming assignment (Go). (Spring 2024 ...) - +
  • University of California, San Deigo, CSE224: Graduate Networked Systems, @@ -649,7 +654,7 @@

    Courses teaching Raft

    Martin Kleppmann. Includes lecture on Raft. (Winter 2022/2023, ...)
  • - +
  • University of Illinois Urbana-Champaign, CS425: Distributed Systems,