Coder Social home page Coder Social logo

ascii_press's People

Contributors

cheerfulstoic avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mneedham

ascii_press's Issues

add file-info for the document on render

currently the render method takes a file but due to the preprocessing only passes text to asciidoctor so the file/path is only reported as <stdin>

if you normally pass a file to asciidoctor it sets these document attributes:

    input_path = File.expand_path(input.path)
    # hold off on setting infile and indir until we get a better sense of their purpose
    attrs['docfile'] = input_path
    attrs['docdir'] = File.dirname(input_path)
    attrs['docname'] = File.basename(input_path, File.extname(input_path))

can we pass the same attributes (in the options block) to the load method of Asciidoctor.

Only submit existing posts if they differ from local

Our audit logs have a decent number of messages telling us that AsciiPress updated posts.

It would be really helpful if that notification existed because AsciiPress had:

  • downloaded the post (from the WP API, not the frontend),
  • compared it with the post it had on the filesystem,
  • seen differences (perhaps shown the diff to stdout for fun) and decided to publish

It would make it a lot easier to review audit logs for security events then.

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.