Coder Social home page Coder Social logo

asciidoclive's Introduction

AsciiDocLIVE

AsciiDocLIVE (asciidoclive.com) is a full-featured online AsciiDoc editor.

Main features:

  • Instant live preview (based on asciidoctor.js);

  • Sync with Dropbox and Google Drive;

  • Customizable editor (based on ACE), with themes and Vim / Emacs keybindings;

  • Runs in any modern browser; no installation required.

Try it out at asciidoclive.com!

Demo

Click for demo:

AsciiDocLIVE Demo

Running Locally

AsciiDocLIVE uses the Ember CLI build system. To build:

git clone [email protected]:jichu4n/asciidoclive.git
cd asciidoclive/client
npm install
bower install

npm install -g ember-cli
# To run local development server on port 8001:
ember serve

For Dropbox integration, create an app on Dropbox and copy the generated App Key into the DROPBOX_APP_KEY field in /client/config/environment.js, and set ENABLE_DROPBOX to true.

For Google Drive integration, create a new project in the Google Developers Console and create a Browser API Key and OAuth Client ID. Then populate the following fields in /client/config/environment.js accordingly:

  • ENABLE_GOOGLE_DRIVE: true

  • GOOGLE_CLIENT_ID: The OAuth Client ID (e.g., 12345678-abcdefg.apps.googleusercontent.com);

  • GOOGLE_APP_ID: The leading digits of the OAuth Client ID preceding the hyphen (e.g., 12345678);

  • GOOGLE_API_KEY: The Browser API Key (e.g., AbCdEfGh_1IjK)

Deployment

To build for production:

cd asciidoclive/client
ember build --environment=production

The /production/ directory contains an example Dockerized NGINX server setup for the app. You can use it as a template to build a Docker container for deployment.

License

The source code is distributed under the Apache License 2.0.

asciidoclive's People

Contributors

jichu4n avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asciidoclive's Issues

Excessive requests to youtube

I was using the network inspector while using asciidoclive.com and noticed that several requests are made to youtube.com on every keystroke:

image

Is there a reason to do so? If not, I'd consider this a bug.

Asciidoclive

For asciidoc live it would be really helpful if you could add a way to import files into the compiler to use for further documentation.

please support include

1)I have multiple documents sharing same headers, so including them from file is convenient thing.
2) also withing same document, if you want to quote text from different section, you include text from within same file using tags...

Back button breaks UX expectation

Currently, if I click the "back" button on my browser (Chrome), it does not navigate back to the previous page, it reloads the page (incrementing the scratch number in the URL).

I believe this is a deceptive design pattern as it breaks UX expectation. The only way to quit the editor is to close the tag/window which is frustrating.

`::` does not create any indentation

I found some snippet here:
https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#ex-complex

* Every list item has at least one paragraph of content,
  which may be wrapped, even using a hanging indent.
+
Additional paragraphs or blocks are adjoined by putting
a list continuation on a line adjacent to both blocks.
+
list continuation:: a plus sign (`{plus}`) on a line by itself

* A literal paragraph does not require a list continuation.

 $ cd projects/my-book

* AsciiDoc lists may contain any complex content.
+
|===
|Column 1, Header Row |Column 2, Header Row

|Column 1, Row 1
|Column 2, Row 1
|===

The rendered image by the documentation looks like this:

image

But the asciidoclive renders it without an indendation:


image


Could this be fixed?

Broken? Not Working?

Just opened the site and it's not rendering. There seems to be an error in console. See screenshot.

I am using Chrome Version 66.0.3359.181 (Official Build) (64-bit)

screen shot 2018-06-02 at 01 37 33

Saving to Google Drive does not work

Hello,

Saving to Google drive does not seem to work. The dialog box looks like more like an "open" dialog box than a "save" one. It asks to select a file on the destination and does not offer the opportunity to enter a file name. I think it should save to a file with the document name, but there is no button for this. Only a "Select" button that is disabled and a "Cancel" button.

Github integration

Would it be possible to add integration with Github so we can edit files that are stored in a Github repo?

Multiple lines with URL links don't work

As the title says. I used text and forced line breaks. But then the URLs don't render correctly and the links are broken. The work-around is to split the lines into separate paragraphs, but then I don't get the desired layout I wanted.

*some text*: https://euw1-employeedirectory.eu-west-1.aws.ocd.prd.lastmile.com/#/person/1473097464[Employee One] +
*some more text*: https://euw1-employeedirectory.eu-west-1.aws.ocd.prd.lastmile.com/#/person/2863656364[Employee Two]

*some text*: https://euw1-employeedirectory.eu-west-1.aws.ocd.prd.lastmile.com/#/person/1473097464[Employee One]

*some more text*: https://euw1-employeedirectory.eu-west-1.aws.ocd.prd.lastmile.com/#/person/2863656364[Employee Two]

And the resulting output is as follows:

Screenshot 2019-10-18 at 14 57 47

If I however use the official asciidoc CLI tool and render a HTML page of that same AsciiDoc text, it generates a correct text and URL links. As shown in this screenshot.

Screenshot_2019-10-18_at_11 27 10

Here is more information about my asciidoc:

$ asciidoc broken-urls.asciidoc

$ asciidoc --version
asciidoc 8.6.10

Rendering of missing space between markup and a double byte character

I noticed that markups such as word, word and word that require a space are not rendered properly when it is missing the required space, if the adjoining character is double byte.

Example 1:
テキストが 太字 で表示されます。
is rendered as:
テキストが 太字 で表示されます。
This is correct

Example 2:
テキストが_太字_で表示されます。
is rendered as:
テキストが太字で表示されます。
This is wrong.
Should be rendered as
テキストが_太字_で表示されます。
So it shows the markup error.

Themes

It would be very nice if it was possible to change the theme of the output. A dropdown to choose a theme would be nice. Some sort of custom attribute providing a link to a custom theme would be amazing. This could even expand to full docinfos rather than just CSS.
I'm considering adding it myself, but is this project maintained? Would it get considered if I were to make a PR?

Footnotes with IDs are not rendered correctly

In the following example only the 2nd footnote (without ID) is rendered correctly:

= Title

A footnote with ID like footnote:myNote[Text] does not render as a footnote while footnote:[Footnote without ID] does.

Google broke Drive sync again

Google no longer lets the app connect to your account. Instead, you get a page announcing that "this app is blocked" when you choose an account.
Screenshot of issue

Still supported?

Hi, there. Is this project still being supported? I see that issues are going unadressed. Thanks.

asciimath and latex math

won't render mathematics.

=== Repeating Fractions Asciimath
[asciimath]
++++
1/((sqrt(phi sqrt5) -phi)e^((2/5)pi)) -=
1 + (e^(-2pi))/(1 + (e^(-2pi))/(1 + (e^(-2pi))/(1 + (e^(-2pi))/(1+ ...))))
++++

=== Repeating Fractions Latex

[latexmath]
++++
\frac{1}{{\sqrt{\phi \sqrt{5}} - \phi}e^{\frac{2}{5}\pi)}} \equiv
1 + \cfrac{e^{-2\pi}}{1 + \cfrac{e^{-2\pi}}{1 +\cfrac{e^{-2\pi}}
{1 + \cfrac{e^{-2\pi}}{1 + {...}}}}}
++++

Add support for Bibliography xreftext

Asciidoclive doesn't currently handle bibliography markup properly when using the optional xreftext.

The example from the Asciidoctor documentation renders like this in AsciiDocLive:
Bibliogray - AsciiDocLIVE

Expected:

  • The second reference (to [gof]) should render as [2].
  • The second bibliography entry's label should present as [2].

Export as PDF

Is there an option available to export the document as PDF ?

How can I see the HTML code?

Hi, Is there way I can copy the HTML output code that rendered on the right side of your asciiDocLive editor?

Requests made to youtube on every keystroke

I was using the network inspector while using asciidoclive.com and noticed that several requests are made to youtube.com on every keystroke:

image

Is there a reason to do so? If not, I'd consider this a bug.

Dropbox dependency is gone

When I do a bower install locally, I get:

bower dropbox#*                                ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/lavelle/dropbox.git", exit code of #128 remote: Repository not found. fatal: repository 'https://github.com/lavelle/dropbox.git/' not found

(And of course, when you go to the bower site, you get the deprecation warning for Bower as a whole, urgent folks to go to webpack/yarn/npm)

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.