Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e25fda7

Browse files
committedApr 11, 2020
fix netlify notification of mixed content
1 parent f81f137 commit e25fda7

File tree

6 files changed

+26
-14
lines changed

6 files changed

+26
-14
lines changed
 

‎.github/workflows/cron.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Installing Nix
1414
uses: cachix/install-nix-action@v8
1515
- name: Building planet.nixos.org
16-
run: nix-shell -p venus --command "venus-planet planet.ini"
16+
run: nix-shell --run "venus-planet planet.ini && fix.sh"
1717
- name: Deploy to Netlify
1818
uses: nwtgck/actions-netlify@v1.0.5
1919
env:

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Installing Nix
1616
uses: cachix/install-nix-action@v8
1717
- name: Building planet.nixos.org
18-
run: nix-shell -p venus --command "venus-planet planet.ini"
18+
run: nix-shell --run "venus-planet planet.ini && fix.sh"
1919
- name: Deploy to Netlify
2020
uses: nwtgck/actions-netlify@v1.0.5
2121
env:

‎README.md

+15
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ link = https://example.com
2222

2323
- send pull request
2424

25+
## Developing
26+
27+
- In one terminal window run:
28+
29+
```
30+
$ nix-shell --run "git ls-files | entr -s 'venus-planet planet.ini'"`
31+
```
32+
33+
Have some patience initial so that cache of blogs builds up.
34+
35+
- In the other terminal window run:
36+
37+
```
38+
$ nix-shell --run "cd dist && python -m http.server"
39+
```

‎default.nix

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{ pkgs ? import <nixpkgs> {}
2+
}:
3+
4+
pkgs.mkShell {
5+
buildInputs = with pkgs; [ venus entr python3 ];
6+
}

‎fix.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
sed -i -e 's|"http://|"https://|g' dist/index.html

‎theme/index.html.tmpl

-12
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@ Powered by:<br>
108108
<a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a>
109109
</p>
110110

111-
<p>
112-
<h2>Planetarium:</h2>
113-
<ul>
114-
<li><a href="http://www.planetapache.org/">Planet Apache</a></li>
115-
<li><a href="http://planet.freedesktop.org/">Planet freedesktop.org</a></li>
116-
<li><a href="http://planet.gnome.org/">Planet GNOME</a></li>
117-
<li><a href="http://planet.debian.net/">Planet Debian</a></li>
118-
<li><a href="http://planet.fedoraproject.org/">Planet Fedora</a></li>
119-
<li><a href="http://planets.sun.com/">Planet Sun</a></li>
120-
<li><a href="http://www.planetplanet.org/">more...</a></li>
121-
</ul>
122-
</p>
123111
</div>
124112
</body>
125113

0 commit comments

Comments
 (0)
This repository has been archived.