https://github.com/mna/mna.dev
Mirror of git.sr.ht/~mna/mna.dev
https://github.com/mna/mna.dev
ignore mirror website
Last synced: over 1 year ago
JSON representation
Mirror of git.sr.ht/~mna/mna.dev
- Host: GitHub
- URL: https://github.com/mna/mna.dev
- Owner: mna
- Created: 2019-03-17T19:26:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-16T16:26:20.000Z (over 1 year ago)
- Last Synced: 2025-02-10T18:11:18.342Z (over 1 year ago)
- Topics: ignore, mirror, website
- Language: Go
- Size: 909 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mna.dev
[](https://app.netlify.com/sites/mna-dev/deploys)
This is the source repository for my mna.dev personal website. It uses
a number of tools to generate data sources for relevant links about me
(e.g. twitter account, blog, articles, popular repositories, etc.) and
this gets turned by a build system into a web page that presents those
data sources as clickable "tiles" or "cards".
## install and generate
```
$ npm install
# installs development dependencies, populates node_modules
$ npm run build
# copies assets, generates css, js, html in public/
$ npm run serve
# starts a local web server to browse the static website, installs
# Go dependencies based on go.mod if needed
$ npm run generate
# runs the commands to retrieve data from the supported sources,
# updating existing ones as needed
$ npm run clean
# removes the generated data and files in the public/ directory
$ npm run watch
# watch for changes and run corresponding build task live
```
Requires the following environments to be set (e.g. via an `.envrc` file
managed by `direnv`):
* `GO111MODULE=on` (until this is the default)
* `GITHUB_API_TOKEN`
* `SRHT_API_TOKEN`
* `GITLAB_API_TOKEN`
* `BITBUCKET_API_TOKEN`
## TODOs
* Grab image(s) when extracting the data, render more twitter-like cards
* Figure out how to re-generate data automatically and publish (eventually)
- systemd timer unit to call a sr.ht build via api, run `npm run generate:data`, commit and push on success