Comments (10)
Couldn't get a PR ready before bed, but here's a gist @lpil .
https://gist.github.com/gamebox/2e01d96ead002b7afc1e64f9657627db
from stdlib.
You can assign this to me @lpil when you have time. I'm pretty close to complete on this task.
from stdlib.
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.
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.
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.
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.
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.
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.
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.
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)
- Redefinition of type `dynamic` in OTP 26 HOT 1
- Question: Is there a "system call" in Gleam? HOT 2
- 0.29 release missing on gh HOT 1
- move to new ´@if´ syntax for target selection HOT 5
- Should we have list.concat? HOT 9
- move function.tap somewhere else before 1.0 HOT 1
- string.inspect should print non-byte bit strings with Gleam syntax HOT 8
- Exclusive range HOT 5
- Map equality in JavaScript target is faulty and not commutative HOT 1
- Extend `float.parse` to parse strings with no decimal point HOT 1
- Change `{thing}.filter` label for the predicate argument HOT 2
- Proposal: Use Javascript Iterators and Generators HOT 9
- `Maps are not ordered` seems to be inaccurate for the erlang target! HOT 1
- int.random behaviour HOT 3
- uri.parse does not follow RFC 3986 on JS HOT 6
- floating point modulo HOT 5
- File objects all hash to the same value HOT 1
- dynamic crashes with a TypeError when decoding null as field HOT 1
- add an order function to help chain comparisons HOT 6
- `bit_array` module exposes a function that should be private HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stdlib.