Giter Site home page Giter Site logo

nobodywasishere / crystaldoc.info Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 0.0 419 KB

Crystal Shards API Documentation Hosting

Home Page: https://crystaldoc.info

License: MIT License

Crystal 84.09% CSS 5.61% HTML 10.30%
api-docs crystal-lang documentation shards

crystaldoc.info's People

Contributors

itsjustgeek avatar nobodywasishere avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

crystaldoc.info's Issues

Move from firejail to docker for building docs

Docker is what docs.rs uses, and it would give a lot more flexibility towards the environment docs are generated in, allowing for using older versions of the docs generator, adding custom libs, better security, and easier setup.

docs.rs uses rustwide, a secure execution environment built on Docker. A similar shard should be developed for Crystal for safe execution.

Add a `latest` route for permalinking

If I were to create a link to the docs from a blog post or static site, it links to a specific version. Unlike the Crystal stdlib docs, I don't see a way to link to the newest version of the docs, instead of a specific static version. This could be problematic if I were to link to them from a static website.

Add support for Fossil and Mercurial

This may require minor refactoring, but all we need to figure out to use these tools is:

  • check if a given url is a valid repository of that vcs type
  • get a list of all the tags and their hashes without cloning
  • get the name and hash of the main branch without cloning
  • cloning the repository
  • forcefully checking out a specific tag

How repos are parsed will also have to be changed, as the largest fossil host doesn't follow the domain.tld/user/proj format.

The current git functionality all lives entirely within CrystalDoc::VCS

Example Crystal Fossil repo for testing:
https://chiselapp.com/user/MistressRemilia/repository/remiaudio/index

If anyone knows of an example mercurial one please let me know!

Add README Badges

https://shields.io/

There could be a link on every doc page at the bottom Copy README Badge, or the format for specifying them could be consistent. I'm unsure if these should just be pure links, or be dynamic and return the latest docs version.

Something like this:

Latest - API Docs
API Docs - CrystalDoc.info
Latest - CrystalDoc.info
API Docs - v0.1.0
CrystalDoc.info - v0.1.0

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.