Code Monkey home page Code Monkey logo

developers's Issues

Build broken

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).

Sort sidebar alphabetically

Globs don't ensure that the result is sorted alphabetically. Some things are sorted alphabetically but is grouped with other files of the same type.

Here is an example:
image

In this example, pdf files and html files are grouped separately.

Non-categorized pages end up on on the site without styling

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:

image

Why?

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

Option 1: Exclude non-categorized files in build process

In the gulp process, instead of symlinking to the project docs page, we can symlink to these specific four folders.

Option 2: Include these files by categorizing them

This would involve moving the files from the docs folder root to their specific folders.

Standalone build mode for offline viewing

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.

Enable tables and code examples to "pop" out of content container

Currently

image

Ideal

image

How

After playing with this for several hours I could not find a pure css way that consistently works on all edgecases (nesting, indentation).

I think the best way would be to use javascript to do this. Adjust the sizes on load and on resize.

Add links to headers

Ideally, show a hyperlink icon when user "hovers" on a header, like on GitHub:

link

Stellar rocket favicon

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).

Include example source from markdown files

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@@
``'

Gulp process "watching"

When in development, it would be nice to have gulp somehow reload the browser when changes to the site are made.

Support for arbitrary examples as "first class citizens" in the endpoint reference sidebar

Proposal: Let arbitrary example types occupy a space in the example

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.

Quick example mockup

screen shot 2016-02-19 at 4 27 27 pm

## Why

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:

image

While the other examples get to occupy a tab:

image

Fix gap in footer

image

The Terms of Service and Privacy Policy links should be aligned to the right.

This can be done by using flex-direction: row-reverse and margin left on link items (as opposed to right).

Jenkins builds broken

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.

Better way to reference other repos

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.

  • Submodules?
  • NPM?
  • Manually by referencing a commit or branch in repos.json and having better gulp tasks?

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.