Giter Club home page Giter Club logo

flashbots-writings-website's Introduction

Website

This website is built using Docusaurus 2, a modern static website generator.

The live version is hosted at https://writings.flashbots.net

Getting started

It's recommended to install the Node.js packages from within a Docker container (installing npm packages can compromise your machine because it can execute arbitrary scripts). You can start the Docker container like this:

docker run -p 3000:3000 --rm -it -w /mnt -v $(pwd):/mnt node:16 /bin/bash

Install the dependencies:

$ yarn

Build the source:

First create a copy of .env.dev at the root of the project and name it .env Linux: cp .env.dev .env Windows: copy .env.dev .env

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. You can view it now at:

http://localhost:3000

To serve a finally built version (i.e. to double-check the meta tags before publishing):

$ yarn build
$ yarn serve

Deployment

Create a pull-request to the main branch. All changes to the main branch are automatically published via Vercel.

Steps to publish a new post

  1. Clone the repository https://github.com/flashbots/flashbots-writings-website and switch to a new branch
  2. If the author has not published on Writings before, add their information in /content/authors.yml
  3. Create a new .mdx-file under /content/ and include the publishing date in the filename.
  4. Copy the header rows from a previous posts (for instance, this post)
  5. Edit the content on the header (also called 'front-matter').
  6. Edit the content of the Writings-post. (If you are embedding Dune Dashboards, please follow the instructions here.
  7. Add a <!--truncate--> tag around after the first paragraph. All content before that tag will be visible as a preview on https://writings.flashbots.net
  8. Create a new topic on the forum with a summary of the post + CTA, open questions, and discussion topics to encourage conversations. Add the link in the "forum_link:"
  9. To preview, install the dependencies as described above and run yarn start
  10. Make sure the meta tags and front-matter is in order, and that the post has a nice description and image:
  • For SEO and previews/sharing, it is recommended to add an image. You can get free images from https://unsplash.com and other pages, but also consider generating an image with Dall-E and Stable Diffusion.
  • The image should be 1200x630px and less than 400kb.
  • Run images through ImageOptim, as it can significantly decrease filesize, thus speeding up page load time.
  • Think about a good introduction paragraph, as it will be used in social previews. It will either use the first part of the post, or you can manually set it with the description: ... front matter.
  1. Once satisfied, create a PR. Once the PR is merged, the Github CI system will automatically deploy it.
  2. Check the sharing meta tags using https://www.opengraph.xyz, and update the content meta tags as needed.

flashbots-writings-website's People

Contributors

amiller avatar anish-agnihotri avatar astarinmymind avatar avalonche avatar bertmiller avatar come-maiz avatar deadpine avatar dependabot[bot] avatar elenahoo avatar fiiiu avatar freddmannen avatar gkoscky avatar hasu-research avatar jakubhruby7 avatar jldunne avatar metachris avatar obadiaa avatar pdaian avatar quintuskilbourn avatar ra-- avatar ryry79261 avatar sarahalle avatar sketsdever avatar sukoneck avatar sxysun-zz avatar thegostep avatar zeroxbrock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flashbots-writings-website's Issues

Redirect for old namespace urls

Description

Urls shared previously, due to the previous namespaced sections of research & writing, now no longer work.

A means of redirecting /research & /writings to the appropriate url needs to be implemented.

Fix min/max text limit

I have a request that we set a min/max character limit for each article's text preview to add some more consistency.
image-1

(initial note on website)

writings-website
I’d like to whip up a website for our written content and loved Paradigm’s simple website (https://paradigm.xyz) so asked them for the source code. Sadly it’s a Wordpress thingy they can’t easily share but offered to share the source code of https://research.paradigm.xyz/. Ideally I’d like to use the Paradigm website (the first link) and have something like this: https://www.figma.com/file/CcKdo1C3ohGCmgTyWOWzVN/flashbots-writings-website?node-id=0%3A1

where I’d want to make sure

we have LaTex support (important for research posts)
it’s easy for people within the Flashbots team to add content to it to streamline the publishing process.
Purpose:

  • better discoverability, aka be a second landing page aside from /pm to what flashbots is
  • aggregation of written content that's currently in several places

Want:

  • research posts (to port from HackMD)
  • LaTex support
  • a filter button for different tags

Dont't Want

  • to repeat stuff that's in other places
  • to add material that's in docs
  • to overlap with material that's in GH

Not Sure

  • videos of talks? ==> for now no, let's keep it minimal and add gradually
  • epheph tutorials? ==> feels like it fits better under docs

nice-to-have (in the future):
the website is hosted on IPFS/some decentralized storage platform, and generally as crypto native as possible in the services used

Title and summary y-distance

Titles should be at same distance from navbar and the summary should be at same distance from the titles,

This is how things look like currently:

titlss

Should look like:
bild

ForumWidget not visible in dark theme

I noticed that the ForumWidget component is not visible in dark mode.
The issue exists because the color attribute is forced in both the icon and the text.

The images below show the behavior in the light and dark mode respectively.

issue-light issue-dark

Upgrade Docusaurus for Writings

The Writings blog runs on a very old version of Docusaurus: 2.0.0, while the current version is 2.4.3.

We're missing out on a number of features and bug fixes and should look into upgrading the platform.

Use Notion as CMS for Writings

Move Writings content to a Notion db.

Set permissions:
Edit content = Stewards?
Edit tags = mates?

View access = mates
Post comments = mates

Reply counter is wrong on Posts

Posts in the Writings page have a “Leave a Reply” badge that should link to the associated post in the Flashbots forums:

Screenshot of a blog post with arrow pointing to a counter saying "Leave a Reply"

This counter should update with the number of replies to the forum post but that isn't happening consistently and we're observing a number of different behaviors:

  • Some posts don't have a "Leave a reply" at all
  • Some do but it's not a link
  • Some others link to a forum post that already has replies but still say “Leave a reply”

Set up a new Discourse instance

Look through Discourse's guides to figure out how to deploy a simple instance so Deadpine can familiarize herself with the customization options

Fancy Banners Project - Writings

Create a new Banner component for the Writings page to allow for promotional banners to be created and enabled by just setting a few parameters, rather than requiring dev work.

These are the available parameters expected for an MVP:

  • Markup: HTML for the banner content, containing the copy, basic formatting, and links.
  • Background Color: Solid, single color for the background
  • Text Color: Single color for all the copy
  • Start date: Date and time (UTC) for when the banner should go live
  • End date: Date and time (UTC) for when the banner should be disabled
  • Custom CSS: Special flag to indicate the basic colors should not apply and the styling will be achieved through banner-specific CSS; This should allow for more complex banners while still cutting down on development time

Improve Writings pagination system

The pagination system in Writings currently has a number of issues:

  1. Not knowing the page you're on
  2. Not being able to skip pages (like go straight to page 3)
  3. Browser history not updating when you move pages, so the back/forward buttons break
  4. You can't link to a specific page

Look into revamping how it works to address at least the issues above

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.