Coder Social home page Coder Social logo

mlh-fellowship / rubicon Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 96.12 MB

Rubicon is a VSCode extension that allows developers to write documentation right from their code editor.

License: MIT License

Python 7.83% HTML 18.80% CSS 12.88% JavaScript 23.41% TypeScript 29.29% Svelte 7.79%

rubicon's Introduction

Rubicon 📝👾⌚

MLH Fellowship Hackathon Submission
Rubicon is a VScode extension that allows developers to make the time consuming task of writing documentation easier by allowing them to write code right in their code editor.

Inspiration☀️

Documentation is often overlooked because it takes time to write it and if not done fast the developers often procrastinate doing it. Aside from beign time consuming and expensive, it is challenging to maintain. Lastly, because of different styles and processes for writing documentation, it is often hard to read especially for bigger projects. After discovering Jinja's capabilities of rendering templates, we wanted to use Jinja to help convert user's documentation input, into exportable or saved files.

User Stories (What it does)✨

  • User can access Rubicon through VScode editor
  • User can write title and description for the project
  • User can attach files and copy/paste code
  • User can go to the landing page and learn more about the extension
  • Jinja renders user input and renders it into to a formated documentation template
  • Jinja's templates can be exported to html, or Github README file

Example of documentation styles 🎀

Jinja template example 1

Jinja template example 2

How we built it💻

To create the templates for the documentation, we used Jinja and Flask on the backend. The template can be exported locally as an html or README file using a node.js request to the Jinja's rendered template.

For the VSCode extension, we used Webviews API from VSCode to create the sidebar and the webview. Typescript was used to write the functionality and it was converted to JavaScript by using Webpack. For the front end of the extension we used Svelte to create the UI.

Landing Page 💫

Challenges we ran into🐢

  • One of the most time consuming challenge was building out the VSCode extension. Neither of us have build extensions before yet because the whole point of our project is to give users the ability to write documentation while they code, we couldnt give up. Most of all it was challenging to work with Typescript + Webpack since none of us used Typescript & Svelte before as well as the VSCode Webviews API's which have many functionalities that have to be researched & configured.
  • Converting user's input into Jinja's templates that can be exported was something we had to think through for some time yet we managed to make it work with static data.

Accomplishments that we're proud of 🥳

  1. Despite of the time zone differences, we were able to collaborate together and complete a challenging yet exciting MVP!
  2. We are proud that we didnt give up and tried our best to have the basic features done.

What we learned🌱

  • Not to underestimate the "simplicity" of code extensions especily if building them for the first time since there is a lot of functionalities envovled
  • Backend with databases is something we got stuck in and want to learn more about so that next time both of us are experienced with it

What's next for Rubicon🚀

For our next steps, we want to enhace and add on the following elements to Rubicon:

  1. Add github authentication - this will add a layer of security as well as help to save the user's input
  2. Connect Rubicon to a database so that all the files are saved - this will allow the user to access previous or current templates
  3. Allow the user to access saved templates through Rubicon's website
  4. Allow user to pick a variety of Jinja templates - developers have different purposes when writing documentation , we want to tailor documentation to their goals
  5. Publish the extension in the VSCode marketplace

How to run this extension locally:

1. git clone "paste the link of the repo" 
2. Open VSCode and type "npm install" 
3. After instillation is done, press F5 to get a local VScode environment up & running ( the rubics cube icon is on the left) 

rubicon's People

Contributors

apiligrim avatar airinb avatar

Stargazers

Kaptian Core avatar Dinu avatar Anna Hramova avatar Vladimir Tribusean avatar  avatar

Watchers

Jonathan Gottfried avatar James Cloos avatar  avatar

Forkers

danilashtefan

rubicon's Issues

figuring out the features

  • Website where the person can download the extension

  • The extension itself opens a drawer while the user is coding in VS code and the user can ass to the readme drawer the following:
    1.add images/attachments
    2.write text and code snippets
    3.make tables
    4.text highlighting
    5.exporting feature: export as pdf,txt, or github readme

BONUS:

  • make the website save all the documentation files

Our Designs from Adobe Xd:
https://xd.adobe.com/view/1372d667-bbd1-4399-b987-6fe8db0fe691-4621/

Edit the Readme

  1. Add about, what it does and why it should be used
  2. How to set up the plugin
  3. Add screens with usages

create multiple styles for the documentation using jinja

Why we need this?
We are creating 2 basic templates which will later be used in our back end. Basically, when the user writes documentation, it will look like a regular note taking app, but on the back end we will convert the notes into the jinja template so that the user can later export it etc.

Deya finished her template which includes:

  • basic styling with boostrap & css
  • tests out the syntax of Jinja

Ana is working on her template which includes:

  • basic styling with boostrap & css
  • tables
  • highlighting (going to make the code highlight api in the extension)
  • images
  • links
  • styles

Landing page

  • make a nice design (Ana)
    What will the landing page include:
  • info about the extension
  • download the extension
  • visuals of how it works

How will this be done:

  • use Jinja to make the whole page (there are some templates that are there)

Maybe this is a Bonus because of time limits:

  • the user is able to see all the documentation

  • save online too

Create a Sidebar

create a basic side bar that opens from the side instead of occupying the webview

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.