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

Commit

Permalink
give up github
Browse files Browse the repository at this point in the history
  • Loading branch information
metasyn committed Apr 27, 2023
1 parent e1fb777 commit 968e115
Show file tree
Hide file tree
Showing 77 changed files with 36 additions and 4,801 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
[submodule "Orca"]
path = Orca
url = https://github.com/metasyn/Orca
[submodule "Enfer"]
path = Enfer
url = https://github.com/metasyn/Enfer
1 change: 0 additions & 1 deletion Enfer
Submodule Enfer deleted from 68eb59
24 changes: 0 additions & 24 deletions LICENSE

This file was deleted.

37 changes: 0 additions & 37 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion Orca
Submodule Orca deleted from 778e9b
97 changes: 6 additions & 91 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,96 +1,11 @@
# learn-orca
# Give Up GitHub

learn-orca is a site for learning how to use [Orca](https://100r.co/site/orca.html).
This project has given up GitHub. ([See Software Freedom Conservancy's _Give Up GitHub_ site for details](https://GiveUpGitHub.org).)

# developing
You can now find this project at [learn-orca on sourcehut](https://git.sr.ht/~metasyn/learn-orca) instead.

Requires [pandoc](https://pandoc.org)
Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.

```
git submodule update
```
Join us; you can [give up GitHub](https://GiveUpGitHub.org) too!

This site uses pandoc to convert markdown to html. The html is then loaded via an iframe.

To make/update the sections:

```
make pandoc
```

To make/update the examples (requires python3):

```
make examples
```

If you're developing, you can run:

```
make serve
```

to start a simple web server for testing (requires python3).

You can run:

```
make watch
```

to automatically call pandoc on files changes. This requires [fswatch](https://github.com/emcrisostomo/fswatch).

Formatting and linting - If you have eslint and prettier installed, you can run:

```
make format
make lint
```

which should help you find bugs/issues in the code.
You can install them with `npm install`.

# adding sections

Simply update `sections.md` and run `make pandoc`.

# adding operators

Operators are in `js/main.js`. Each operator specifies some rows, inputs, and outputs.

# contributing

- make changes
- run `make pandoc` if needed
- run the linter and formatter
- does the site load? do examples load?
- use [git-send-email](https://git-send-email.io) to send a patch to ~metasyn/public-[email protected]

# license

```
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>
```
![Logo of the GiveUpGitHub campaign](https://sfconservancy.org/img/GiveUpGitHub.png)
89 changes: 30 additions & 59 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,70 +4,41 @@
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self' 'unsafe-eval' 'unsafe-inline' data:; worker-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data:;"
/>

<title>LEARN ORCΛ~</title>

<!-- css -->
<link rel="stylesheet" href="styles/shared.css" />
</head>
<body>
<div id="navbar" class="navbar">
<a href="https://100r.co/site/orca.html">ORCΛ</a>
<div class="dropdown">
<button class="dropbtn">tutorial</button>
<div id="tutorial-content" class="dropdown-content"></div>
</div>
<div class="dropdown">
<button class="dropbtn">basics</button>
<div id="basics-content" class="dropdown-content"></div>
</div>
<div class="dropdown">
<button class="dropbtn">setups</button>
<div id="setups-content" class="dropdown-content"></div>
</div>
<div class="dropdown">
<button class="dropbtn">misc</button>
<div id="misc-content" class="dropdown-content"></div>
</div>
<a id="create-mode">create</a>
<a id="learn-mode" class="hidden">learn</a>
</div>

<div id="guide">
<h1 id="fancyboi">LEARN ORCΛ</h1>
<noscript>
<p>
It look's like you aren't using javascript. Interactive elements
require javascript. However, most of the content can be read in a
static version <a href="sections.html">here</a>.
</p>
</noscript>
<iframe
src="sections.html"
onload="this.before(this.contentDocument.body.children[0]);this.remove();"
></iframe>
<footer class="text-center">
<a href="https://git.sr.ht/~metasyn/learn-orca">page source</a>
<br />
tutorial made by <a href="https://metasyn.pw">metasyn</a>
</footer>
</div>
<body>
<h1>learn-orca has moved to sourcehut</h1>

<div id="orca">
<iframe id="orca-iframe" src="Orca/index.html"></iframe>
</div>
<p>
you can read about
<a href="https://sfconservancy.org/GiveUpGitHub/"
>why we're giving up on github here</a
>.
</p>

<div id="enfer">
<iframe id="enfer-iframe" src="Enfer/index.html"></iframe>
</div>
<p>
the project can now be found at
<a href="https://metasyn.srht.site/learn-orca/"
>https://metasyn.srht.site/learn-orca/</a
>
</p>

<!-- scripts -->
<script type="text/javascript" src="js/vanilla-tilt.min.js"></script>
<script type="text/javascript" src="js/examples.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<p>
if you have javascript enabled, you will be redirected in
<span id="countdown">10</span> seconds...
</p>
<script>
document.addEventListener("DOMContentLoaded", () => {
console.log("countdown...");
let span = document.getElementById("countdown");
setInterval(() => {
span.innerHTML = parseInt(span.innerHTML, 10) - 1;
if (span.innerHTML <= 0) {
window.location = "https://metasyn.srht.site/learn-orca/";
}
}, 1000);
});
</script>
</body>
</html>
1 change: 0 additions & 1 deletion js/examples.js

This file was deleted.

Loading

0 comments on commit 968e115

Please sign in to comment.