Skip to content
Open
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
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- "main"
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
core:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
with:
submodules: true
libraries: |
apt:
- pandoc
envs: |
- linux: build_site
- linux: linkcheck
15 changes: 0 additions & 15 deletions .github/workflows/circle_artifacts.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.py[co]
*.DS_STORE
_build/
credits.rst

15 changes: 7 additions & 8 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ version: 2

build:
os: ubuntu-24.04
apt_packages:
- rsync
tools:
python: "3.13"
jobs:
build:
html:
- echo $READTHEDOCS_OUTPUT
- mkdir --parents $READTHEDOCS_OUTPUT/html/
- rsync -avz --exclude .git --exclude ".*" --exclude _readthedocs --exclude "*.py" --exclude CNAME ./ _readthedocs/html

sphinx:
configuration: conf.py

python:
install:
- requirements: requirements.txt
73 changes: 73 additions & 0 deletions _static/css/astropy-org.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
.bd-sidebar-secondary {
background-color: transparent;
}

a.sd-btn {
border: none;
}

a.sd-btn {
color: var(--sst-lightest-color);
background-image: linear-gradient(var(--sst-accent-color-muted), var(--sst-accent-color-bright));
}

a.sd-btn:hover,
a.sd-btn:visited:hover {
color: var(--sst-dark-color);
background: rgba(255, 255, 255, 0.3);
background-blend-mode: lighten;
background-image: linear-gradient(var(--sst-accent-color-muted), var(--sst-accent-color-bright));
text-decoration: none;
}

table{
margin: 20px 0px;
word-break:overflow-wrap;
}

.package-table {
border: 0;
}

table.package-table thead{
text-align: left;
font-weight: bold;
border-bottom: 1px solid rgba(128,128,128,0.2);
}

table.package-table td{
padding:5px 5px;
font-size: 100%;
line-height: 1.3em;
border: 0;
}

table.package-table td.first-package-row {
padding:15px 5px 5px 5px;
font-weight: bold;
min-width: 130px;
}

.package-table td ~ td, .table td ~ th, .table th ~ td, .table th ~ th {
border-left: 0;
}

.package-table tbody tr:nth-child(2n+1),
.package-table tbody tr {
background-color: transparent !important;
}

/* Create a border after every 3rd row to visually separate packages */
.forth-row-sep tbody tr:nth-child(4n+5) {
border-top: 1px var(--bs-border-color) solid;
}
.third-row-sep tbody tr:nth-child(3n+4) {
border-top: 1px var(--bs-border-color) solid;
}

.announce-logo {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
122 changes: 9 additions & 113 deletions js/functions.js → _static/js/functions.js
Original file line number Diff line number Diff line change
@@ -1,115 +1,9 @@
$( document ).ready(function(){
// Using jQuery is ok because it is needed by and bundled with sphinx

$('#responsive-menu-button').sidr({
name: 'sidr-main',
source: '#navigation'
});

$("div#documentation span").click(function() { //When trigger is clicked...

$("div#documentation ul").slideDown('fast').show(); //Drop down the subnav on click

$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
});


//Following events are applied to the trigger (Hover events for the trigger)
}).hover(function() {
$(this).addClass("subhover"); //On hover over, add class "subhover"
}, function(){ //On Hover Out
$(this).removeClass("subhover"); //On hover out, remove class "subhover"
});

$('#os-selector ul').each(function(){
// For each set of tabs, we want to keep track of
// which tab is active and it's associated content
var hash, $active, $content, $links = $(this).find('a');

// If the location.hash matches one of the links, use that as the active tab.
// If no location.hash is given, use a tab determined by guess_os()
// If no match is found, use the first link as the initial active tab.
hash = (location.hash === "") ? '#' + guess_os() : location.hash;
$active = $($links.filter('[href="'+hash+'"]')[0] || $links[0]);
$active.addClass('active');
$content = $($active.attr('href'));

// Hide the remaining content
$links.not($active).each(function () {
$($(this).attr('href')).hide();
});

// Bind the click event handler
$(this).on('click', 'a', function(e){
// Make the old tab inactive.
$active.removeClass('active');
$content.hide();

// Update the variables with the new link and content
$active = $(this);
$content = $($(this).attr('href'));

// Make the tab active.
$active.addClass('active');
$content.show();

// Prevent the anchor's default click action
e.preventDefault();
});

// Now go through and find any links that are *not* in the above list
// but should point to a tab.
$('a').each(function(){
//For every link check if it matches one of the tabs.
//If so, replace with "clicking" on the tab.
var $curra = $(this);
var currhref = $curra.attr('href');
$links.each(function() {
var $currlia = $(this);

if ((currhref == $currlia.attr('href'))) {
//Don't press the tab itself, that's above
if (! $curra.is($currlia)) {
$curra.on('click', function(e){
//act like we clicked on the tab itself instead of this link
$currlia.click();
// We let the default through here, because
// you probably want to jump to the revealed tab
e.preventDefault();
});
}
}
});
});
});

// makes permalink visible only when user moves cursor on headline, otherwise hidden
$("h1").hover(function() {
$(this).children("a").css("visibility", "visible");
}, function() {
$(this).children("a").css("visibility", "hidden");
});
$("h2").hover(function() {
$(this).children("a").css("visibility", "visible");
}, function() {
$(this).children("a").css("visibility", "hidden");
});
$("h3").hover(function() {
$(this).children("a").css("visibility", "visible");
}, function() {
$(this).children("a").css("visibility", "hidden");
});

}); // Document Ready


//Using jQuery is ok because it is needed by and bundled with sphinx

//Quirk to note: the jQuery.getJSON function fails if you open this locally
//with Chrome, because Chrome thinks local JSON files are unsafe for some
//reason. Use basically any other modern browser, or it works fine if its
//actually on the web server even with chrome.
// Quirk to note: the jQuery.getJSON function fails if you open this locally
// with Chrome, because Chrome thinks local JSON files are unsafe for some
// reason. Use basically any other modern browser, or it works fine if its
// actually on the web server even with chrome.
Comment on lines +3 to +6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really important here, since this is just a comment anyway, but I think most modern browsers now refuse to load any local file for security - for testing locally you'll a local web server running for all or most of them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this comment is pretty old 😆

I'd like to purge this entire file of js if I have the time.


function url_translator(urltext) {
if (urltext === undefined) {
Expand Down Expand Up @@ -182,6 +76,8 @@ function maintainer_translator(maint, pkgnm) {


function createRolesTable(roles) {
var tab = document.getElementById("roles-table");
tab.deleteRow(1);
//roles is an array of objects called "role"
var rows = '';
roles.forEach(function (role) {
Expand Down Expand Up @@ -246,8 +142,7 @@ function createRolesDescription(roles) {

//console.log(role['responsibilities']);

blocks += '<br/>' +
'<h3 id="' + role["url"] + '">' + role["role-head"] + '</h3>';
blocks += '<h4 id="' + role["url"] + '">' + role["role-head"] + '</h4>';

index = 0;

Expand Down Expand Up @@ -377,6 +272,7 @@ function populatePackageTable(tableid, data) {
shieldcell.innerHTML = makeShields(pkgi)

}
tab.deleteRow(0);
}
}

Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading