Skip to content

alexkurowski/bookva-app

Repository files navigation

Bookva

Writing application

Screenshot

Screenshot

Build Preparations

  • Install slim-lang gem

  • Install pandoc

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:9080
npm run dev

# build electron application for production
npm run build

# run unit & end-to-end tests
npm test

How to add new color schemes

  • Define colors at src/renderer/assets/stylesheets/variables.sass

  • Add a scheme class using scheme mixin at src/renderer/assets/stylesheets/writer.sass

  • Lastly, add a dropdown option to Configurations component at src/renderer/components/writer/sidebar/Configurations.vue

  • If scheme is dark, make sure to add its name at src/renderer/App.vue in darkSchemes array

How to add new fonts

  • Create a new folder at src/renderer/assets/fonts/ and add there files for regular, bold, italic and bolditalic

  • Add a new font-face at src/assets/stylesheets/fonts.sass for each font variant in the same order mentioned above

  • Add a new &.font-family-*new-font-name-here* > .medium-editor rule at src/assets/stylesheets/appearance.sass with your font-family that matches font-face defined in previous step

  • Lastly, add a dropdown option to Configurations component at src/renderer/components/writer/sidebar/Configurations.vue

Icon

To make icon files, first, create a 1024x1024 png image, then convert it into icons using https://iconverticons.com/online/

Contributing

  1. Fork this repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors