stellar / developers Goto Github PK
View Code? Open in Web Editor NEWStellar developer portal site generator.
Home Page: https://www.stellar.org/developers
License: Apache License 2.0
Stellar developer portal site generator.
Home Page: https://www.stellar.org/developers
License: Apache License 2.0
https://www.stellar.org/developers/learn/concepts/transactions.html
the ##headings didn't get converted from the .md correctly
It's currently impossible to build a project, probably broken since: #88.
[12:01:41] 'build' errored after 650 ms
[12:01:41] Error: ENOENT: no such file or directory, stat '/Users/bartek/developers/src/horizon'
at Error (native)
Looks like src/horizon
symlink destination doesn't exist:
horizon -> ../repos/go/services/horizon/docs
I would fix this but I'm not sure what was a decision around horizon docs when moving it to monorepo (stellar/go#93).
listed here: stellar.org/developers
and here: https://www.stellar.org/developers/reference/
https://github.com/elucidsoft/dotnetcore-stellar-sdk
https://en.wikipedia.org/wiki/Canonical_link_element
Some pages have multiple ways of getting to. For example, root pages can be accessed via /index.html
and /
. The canonical link element resolves this "duplication" of content.
For example, https://www.stellar.org/developers/learn/index.html and https://www.stellar.org/developers/learn/index.html would have the following html tag:
<link rel="canonical" href="https://www.stellar.org/developers/learn/" />
This is disconcerting. It shouldn't collapse things for the user.
A button that shows up that when clicked will change the url to show that anchor.
Here is an example of how Github does it:
Clicking on a header like the example one immediately above will bring you to #17 (comment)
if there was one, i couldn't find it!
A user may go to a stellar-core page with the url https://www.stellar.org/developers/stellar-core/learn/admin.html
. Out of curiosity, the user deletes the learn/admin.html
and gets to https://www.stellar.org/developers/stellar-core/
. However, that root stellar-core page looks like this:
This happens because all pages on the developer site is supposed to be under one of the four categories: Learn
, Reference
, Tools
, and Beyond Code
. It was decided a while back that some files did not need to be put on the developers site and thus were not categorized (not in a folder with the above name).
There are two solutions
In the gulp process, instead of symlinking to the project docs page, we can symlink to these specific four folders.
This would involve moving the files from the docs
folder root to their specific folders.
Similar to this: https://en.wikipedia.org/wiki/Zero-width_space
Except the difference with wordbreaks (<wbr />
) is that it won't be copied into plain text (whereas zero width spaces can get into json and cause parse errors).
Make it so that www.stellar.org and this share the same code. Alternatively, stellar.org can just link to the developers site.
Right now, the build process assumes that the build will be hosted online.
We can consider making a mode that compiles the developers site into an more offline-friendly archive. It can compressed well (zip, tar.gz, bzip2) to save bandwidth. Then, we can have weekly builds on the releases page. This way, people connected to free wifi can download the archive when bandwidth is cheap for them and view offline without using extra bandwidth.
If we are going with collapsable side nav I think it should at least start expanded.
Take for example: https://www-stg.stellar.org/developers/horizon/reference/path-finding.html
Example on a apple thunderbolt monitor
It doesn't snap to the side until the viewport fills up until about 2800 pixels wide
This is a minor issue, but because the nodes page is actually generated during the build process of developers, there's no corresponding doc in the docs repo for nodes.md.
The quick fix would be just removing the "Edit this doc on Github" link at the bottom of the page.
You can repro this by:
Implement the same favicon as on the www.stellar.org/
site.
You can view the source at the Stellar homepage:
<!-- favicon support is a bit shoddy -->
<link rel="apple-touch-icon" sizes="144x144" href="//www.stellar.org/wp-content/themes/stellar/favicon/rocket-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="//www.stellar.org/wp-content/themes/stellar/favicon/rocket-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="//www.stellar.org/wp-content/themes/stellar/favicon/rocket-180x180.png">
<link rel="icon" type="image/png" href="//www.stellar.org/wp-content/themes/stellar/favicon/rocket-96x96.png" sizes="96x96">
<meta name="msapplication-TileImage" content="https://www.stellar.org/wp-content/themes/stellar/favicon/rocket-144x144.png">
The developers site should host the files (as opposed to hotlinking to stellar.org/wp-content).
I noticed that some of examples in developer portal are not working (again) because of API changes. To solve this problem I want to add examples tests to our JS SDK. Instead of copying updated examples to markdown files after each edit it would be great to be able to include other file (example file) from markdown files.
So for example:
## Building requests
js-stellar-sdk uses the [Builder pattern](https://en.wikipedia.org/wiki/Builder_pattern) to create the requests to send
to Horizon. Starting with a [server](../reference/server.md) object, you can chain methods together to generate a query.
(See the [Horizon reference](https://www.stellar.org/developers/reference/) documentation for what methods are possible.)
```js
var StellarSdk = require('stellar-sdk')
var server = new StellarSdk.Server('https://horizon-testnet.stellar.org');
// get a list of transactions that occurred in ledger 1400
server.transactions()
.forLedger(1400)
.call().then(function(r){ console.log(r); });
// get a list of transactions submitted by a particular account
server.transactions()
.forAccount('GASOCNHNNLYFNMDJYQ3XFMI7BYHIOCFW3GJEOWRPEGK2TDPGTG2E5EDW')
.call().then(function(r){ console.log(r); });
``'
Would become something like this:
## Building requests
js-stellar-sdk uses the [Builder pattern](https://en.wikipedia.org/wiki/Builder_pattern) to create the requests to send
to Horizon. Starting with a [server](../reference/server.md) object, you can chain methods together to generate a query.
(See the [Horizon reference](https://www.stellar.org/developers/reference/) documentation for what methods are possible.)
```js
@@include ../examples/transactions.js@@
``'
When in development, it would be nice to have gulp somehow reload the browser when changes to the site are made.
This would let multiple examples for a single language to exist on the bar. This could also allow us to introduce more complex examples (like multiple examples) with accompanying explanation text.
There is a disparity between streaming examples and "regular" language examples. A language can only have at most one code example.
In accounts-all, the streaming example is displayed as if it were content:
While the other examples get to occupy a tab:
seems to be the ones with a horizontal scroll bar.
look at first curl example: https://www.stellar.org/developers/learn/get-started/get-started.html
Add here, on both sidebar and main body: https://www.stellar.org/developers/reference/
It took me a little while to find it earlier today (https://github.com/Inbot/inbot-stellar-kotlin-wrapper), it's active, and it's probably preferable to Android devs over our vanilla Java SDK.
This is a issue that is straight forward to contribute
Here is an example of where toml is used: https://github.com/stellar/docs/blob/master/learn/concepts/stellar-toml.md
Places to edit:
There doesn't seem to be a repo for the main website, so I'm leaving this here.
On https://www.stellar.org/how-it-works/stellar-basics/ bottom right corner seem to suggest something was intended to be commented out:
It looks like changes to JS SDK broke builds:
ERROR: Unable to find the source file or directory /app/repos/js-stellar-sdk/libdocs
[12:50:29] 'generate-sdk-symbols' errored after 1.33 min
[12:50:29] Error: ERROR: Unable to find the source file or directory /app/repos/js-stellar-sdk/libdocs
at formatError (/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^3.7.0/format-error.js:20:10)
at Gulp.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^3.7.0/log/events.js:41:15)
at emitOne (events.js:101:20)
at Gulp.emit (events.js:188:7)
at Gulp.Orchestrator._emitTaskDone (/app/node_modules/orchestrator/index.js:264:8)
at /app/node_modules/orchestrator/index.js:275:23
at finish (/app/node_modules/orchestrator/lib/runTask.js:21:8)
at cb (/app/node_modules/orchestrator/lib/runTask.js:29:3)
at /app/gulpfile.babel.js:97:14
at ChildProcess.<anonymous> (/app/gulp/code-symbol-tags.js:41:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
[12:50:29] 'src' errored after 1.4 min
@rice2000 @theaeolianmachine you may want to check it out.
We should have a way to lock other repos to particular commits or branches—so we don’t build docs for pre-production features, etc. Also to make it easier to keep everything up-to-date and in-sync.
repos.json
and having better gulp tasks?On the home page under:
Ask questions and get in touch with 1000+ developers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.