Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix netlify notification of mixed content
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Apr 11, 2020
1 parent f81f137 commit e25fda7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Installing Nix
uses: cachix/install-nix-action@v8
- name: Building planet.nixos.org
run: nix-shell -p venus --command "venus-planet planet.ini"
run: nix-shell --run "venus-planet planet.ini && fix.sh"
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.0.5
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Installing Nix
uses: cachix/install-nix-action@v8
- name: Building planet.nixos.org
run: nix-shell -p venus --command "venus-planet planet.ini"
run: nix-shell --run "venus-planet planet.ini && fix.sh"
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.0.5
env:
Expand Down
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -22,3 +22,18 @@ link = https://example.com

- send pull request

## Developing

- In one terminal window run:

```
$ nix-shell --run "git ls-files | entr -s 'venus-planet planet.ini'"`
```

Have some patience initial so that cache of blogs builds up.

- In the other terminal window run:

```
$ nix-shell --run "cd dist && python -m http.server"
```
6 changes: 6 additions & 0 deletions default.nix
@@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> {}
}:

pkgs.mkShell {
buildInputs = with pkgs; [ venus entr python3 ];
}
3 changes: 3 additions & 0 deletions fix.sh
@@ -0,0 +1,3 @@
#!/bin/sh

sed -i -e 's|"http://|"https://|g' dist/index.html
12 changes: 0 additions & 12 deletions theme/index.html.tmpl
Expand Up @@ -108,18 +108,6 @@ Powered by:<br>
<a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a>
</p>

<p>
<h2>Planetarium:</h2>
<ul>
<li><a href="http://www.planetapache.org/">Planet Apache</a></li>
<li><a href="http://planet.freedesktop.org/">Planet freedesktop.org</a></li>
<li><a href="http://planet.gnome.org/">Planet GNOME</a></li>
<li><a href="http://planet.debian.net/">Planet Debian</a></li>
<li><a href="http://planet.fedoraproject.org/">Planet Fedora</a></li>
<li><a href="http://planets.sun.com/">Planet Sun</a></li>
<li><a href="http://www.planetplanet.org/">more...</a></li>
</ul>
</p>
</div>
</body>

Expand Down

0 comments on commit e25fda7

Please sign in to comment.