Coder Social home page Coder Social logo

org-share-to-web.el's Introduction

Share an Org buffer as a web page. In addition, a URL will be created that you can share to view it.

Demo

Requirements

  • Domain: To access the file share.
  • Hosting: To host the file share. It is recommended to use a server with SSH access.
  • TRAMP: To access the hosting.

Install

Add in your init.el.

(use-package org-share-to-web
  :straight (:host github :repo "tanrax/org-share-to-web.el" :files ("org-share-to-web.el"))
  :ensure t)

Configure

Configure the domain to be used to access the file share and the directory where it will be hosted using TRAMP.

(setq org-share-to-web-domain "") ; Domain
(setq org-share-to-web-directory "") ; TRAMP path

Example.

(setq org-share-to-web-domain "https://mydomain.com/")
(setq org-share-to-web-directory "/ssh:[email protected]:~/www/")

The domain must end with /. The directory must end with / and start with /ssh: or another TRAMP method.

Run

Open an Org file and run org-share-to-web-buffer.

It will copy the URL to your clipboard to open the document share.

If you need to manage the shared files, such as deleting them, use org-share-to-web-dired.

Theme

If you want it to look really nice, include the following lines at the beginning of your Org documents.

Light

#+html_head: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lora:wght@500&display=swap">
#+html_head: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap">
#+html_head: <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tanrax/org-share-to-web.el@main/themes/light.css">
#+OPTIONS: toc:nil num:nil
#+OPTIONS: html-postamble:nil

Dark

#+html_head: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lora:wght@500&display=swap">
#+html_head: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap">
#+html_head: <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tanrax/org-share-to-web.el@main/themes/dark.css">
#+OPTIONS: toc:nil num:nil
#+OPTIONS: html-postamble:nil

org-share-to-web.el's People

Contributors

actions-user avatar tanrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.