Giter Club home page Giter Club logo

personal-roam-website's Introduction

I have switched to an obsidian-based workflow

personal-roam-website

Netlify Status


If you found this repo and want help building your own site with Roam Research and generate-roam-site-action, reach out to me at mcschrader at crimson.ua.edu

Instructions

Overview

I am using Roam Research to create my personal website. To make it happen, I closely relied on the process outlined by Rodrigo Franco in his personal website

In summary:

  1. Roam -> HTML w/ generate-roam-site-action
  • Runs at a regular interval with Github Actions, commiting the changes to this repository
  1. Static site is hosted on Netlify

Step 1 - Setting up Roam Research

generate-roam-site-action relies on a few settings & page names saved in the Roam Research Database. They are outlined the generate-roam-site. As a quick example, my [[roam/js/static-site]] page looks like this:

- Index
    - Website Homepage
- Filter
    - Tagged With
        - Blog Post
- Template
    - ```html
<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="assets/css/reference.css"/>
    <title>Max's Notes</title>
</head>
<body>

<header class="header">
    <div class="container">
        <a class="logo" href="/">
            <img src="assets/logo.svg" alt="Max Schrader logo"/>
        </a>
        <nav class="nav">
            <ul class="list list--nav">
                <li class="item  item--nav">
                    <a href="Who_am_I.html">About</a>
                </li>
                <li class="item  item--nav  item--current">
                    <a href="/">Home</a>
                </li>
            </ul>
        </nav>
    </div>
</header>

<section class="main">
    <article data-page="${PAGE_NAME}">
        <div data-title="${PAGE_NAME}">
            <h2 data-title="${PAGE_NAME}">
                ${PAGE_NAME}
            </h2>
        </div>
        ${PAGE_CONTENT}
    </article>
  	<div id="references">
      <ul>
        ${REFERENCES}
      </ul>
    </div>
</section>

</body>
</html>```
- Reference Template
    - ```html
<li><a href="${LINK}">${REFERENCE}</a></li>```

Next, it is important to understand the per-page configuration, outlined here.

As an example, here is a my Personal Projects page. Including [[Blog Post]] on the page means that it will be converted to HTML, per my Filter setting. I can include a query under the [[roam/js/static-site/ignore]], and it won't render on the website.

Step 2 - Creating a Repository for your Personal Website and adding the Github Secrets required

There are different ways to use generate-roam-site, but if you want to use Netlify to host your site (what I am doing), you need to create a Github repository for your site. Once integrated, Netflify will then automatically build your site on any push to the linked repository.

Once a repository for your site has been created, you need to add 3 different Github secrets. The process is explained in the Github docs

The secrets should correspond to the three inputs explained here. I went with the all-caps naming convention, so if you want to copy my Github Action 1:1 (Step 3) you will need to do the same. See below for my secrets

Step 3 - Creating your Github Action

Github Actions allow

personal-roam-website's People

Contributors

mschrader15 avatar

Watchers

 avatar  avatar

Forkers

anthrolisp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.