Giter VIP home page Giter VIP logo

Comments (10)

gamebox avatar gamebox commented on August 11, 2024 1

Couldn't get a PR ready before bed, but here's a gist @lpil .

https://gist.github.com/gamebox/2e01d96ead002b7afc1e64f9657627db

from stdlib.

gamebox avatar gamebox commented on August 11, 2024 1

You can assign this to me @lpil when you have time. I'm pretty close to complete on this task.

from stdlib.

lpil avatar lpil commented on August 11, 2024

Docs are definitely something we want, but we don't have a straightforward way of rendering any. (gleam-lang/gleam#153)

How would you intend to set up the project with documentation?

One thing we could do to start is to add documentation comments to the types and functions in the stdlib.

from stdlib.

mgwidmann avatar mgwidmann commented on August 11, 2024

Well they could be hosted on hexdocs, they'd just have to be manually written (not attached to the code base) until such functionality existed to do so. I'd write them the same way that erlang projects would post to hexdocs, like hackney does:
https://github.com/benoitc/hackney/tree/master/doc
https://hexdocs.pm/hackney/

Would that not work for some reason?

from stdlib.

lpil avatar lpil commented on August 11, 2024

Hackney generates their documentation using edoc, we would likely need a similar tool for Gleam. I've made some adjustments to the compiler to make generating documentation like this more possible but we still have some way to go.

from stdlib.

lpil avatar lpil commented on August 11, 2024

A good place for new contributors to start would be to add documentation comments to the functions in the stdlib. I like Elm and Elixir's documentation, they are quite clear, we could use them for guidance.

from stdlib.

gamebox avatar gamebox commented on August 11, 2024

I'm taking this on right now, will be submitting a proposal PR tonight with a fleshed out documentation of string - along with stubs for methods we may want to implement(cribbed from Elm's core module)

from stdlib.

lpil avatar lpil commented on August 11, 2024

Looks great!

The functions that convert to and from integers we already have in the int module.

The functions that use Char night have to wait until later- Gleam does not yet have a Char data type.

from stdlib.

gamebox avatar gamebox commented on August 11, 2024

We could close this, or should we expand the scope to include a plan for publishing the docs? Once gleam-lang/gleam#401 lands, we'll be able to build with --doc flag and get the docs in a /doc directory. We just need to copy those files somewhere.

from stdlib.

lpil avatar lpil commented on August 11, 2024

I think we can close this for now. We'll make a ticket for publishing docs once we're ready in the compiler. Thanks!

from stdlib.

Related Issues (20)

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.