Giter Site home page Giter Site logo

iliyazelenko / docs-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from near/docs

0.0 1.0 0.0 105.24 MB

NEAR Protocol Documentation

Home Page: https://docs.near.org

License: Apache License 2.0

Shell 0.41% JavaScript 26.48% TypeScript 49.70% CSS 23.42%

docs-1's Introduction





NEAR Protocol - scalable and usable blockchain

Discord CI

  • โš–๏ธ NEAR Protocol is a new smart-contract platform that delivers scalability and usability.
  • ๐Ÿ›  Through sharding, it will linearly scale with the number of validation nodes on the network.
  • ๐Ÿ— Leveraging WebAssembly (via Rust and AssemblyScript), more sane contract management, ephemeral accounts and many other advancements, NEAR finally makes using a blockchain protocol easy for both developers and consumers.

Quick start

Check out the following links

Contributing

NEAR uses Docusaurus for documentation. Please refer to their documentation for details on major structural contributions to the documentation.

For simple content changes you have 2 options

The instant PR

This is the fastest way to submit content changes directly from the page where you notice a mistake.

  1. Open any page in the docs on https://docs.near.org
  2. Click the [ Edit ] button at the top right hand side of every content page
  3. Make your edits to the document that opens in GitHub by clicking the โœŽ (pencil) icon
  4. Submit a PR with your changes and comments for context

The typical PR

This is the standard fork-branch-commit workflow for submitting pull requests to open source repositories

  1. Fork this repo to your own GitHub account (or just clone it directly if you are currently a member of NEAR)

  2. Open your editor to the top level repo folder to view the directory structure as seen below

  3. Move into the /website folder where you will run the following commands:

    • Make sure all the dependencies for the website are installed:

      # Install dependencies
      yarn
    • Run the local docs development server

      # Start the site
      yarn start

      Expected Output

      # Website with live reload is started
      LiveReload server started on port 35729
      Docusaurus server started on port 3000

      The website for docs will open your browser locally to port 3000

  4. Make changes to the docs

  5. Observe those changes reflected in the local docs

  6. Submit a pull request with your changes

Directory Structure

Your project file structure should look something like this with a few key files and folders highlighted

โ”œโ”€โ”€ CODE_OF_CONDUCT.md
โ”œโ”€โ”€ CONTRIBUTING.md
โ”œโ”€โ”€ LICENSE-APACHE.txt
โ”œโ”€โ”€ LICENSE-MIT.txt
โ”œโ”€โ”€ README.md             <-- the document you are reading right now
โ”œโ”€โ”€ docs                  <-- all the content for the site is in this folder as markdown files
โ”‚ย ย  โ”œโ”€โ”€ api
โ”‚ย ย  โ”œโ”€โ”€ assets            <-- place documentation images here
โ”‚ย ย  โ”œโ”€โ”€ code-patterns
โ”‚ย ย  โ”œโ”€โ”€ community
โ”‚ย ย  โ”œโ”€โ”€ concepts
โ”‚ย ย  โ”œโ”€โ”€ contribution
โ”‚ย ย  โ”œโ”€โ”€ development
โ”‚ย ย  โ”œโ”€โ”€ hackathon
โ”‚ย ย  โ”œโ”€โ”€ interaction
โ”‚ย ย  โ”œโ”€โ”€ local-setup
โ”‚ย ย  โ”œโ”€โ”€ overview
โ”‚ย ย  โ”œโ”€โ”€ quick-start
โ”‚ย ย  โ”œโ”€โ”€ roles
โ”‚ย ย  โ”œโ”€โ”€ style-guide.md
โ”‚ย ย  โ”œโ”€โ”€ technical
โ”‚ย ย  โ”œโ”€โ”€ tutorials
โ”‚ย ย  โ””โ”€โ”€ validator
โ””โ”€โ”€ website
    โ”œโ”€โ”€ build
    โ”œโ”€โ”€ core
    โ”œโ”€โ”€ i18n
    โ”œโ”€โ”€ package.json
    โ”œโ”€โ”€ pages
    โ”œโ”€โ”€ sidebars.json     <-- rarely used for changing left-hand-side page navigation
    โ”œโ”€โ”€ siteConfig.js     <-- rarely used for general site configuration (including header links)
    โ”œโ”€โ”€ static
    โ””โ”€โ”€ test-links.sh     <-- always used to test links before submitting changes

Found a broken link?

For broken links internal to the docs, please submit an issue or PR request as per above.

If you found a broken link from a Google search, please request to remove it from their index here: https://www.google.com/webmasters/tools/removals

Check for broken links before pushing

Contributors, please consider checking for broken links executing the file test-links.sh before pushing to this repo so our CI doesn't fail, forcing someone (maybe you) to fix broken links before merging.

Here's one way to always make this happen automatically on every push:

Note that the file test-links.sh mimics the CI build script by checking all links then cleaning itself up.

  1. Create a new githook in your local copy of the repo called .git/hooks/pre-push and copy the entire contents of the snippet below into that file.
  2. Now every time you try to push to the repo, links will be checked for you automagically.
#!/bin/sh

set -e

echo "Push detected in NEAR docs repo"

if [[ $NEAR__CHECK_ALL_LINKS ]]
# only stop and check all links if this is enabled
# since it request npm installed (uses npx) and can generally be surprising to new contributors
then
    echo "Checking all links before push"

    GIT_DIR=$(git rev-parse --show-toplevel)

    cd "$GIT_DIR/website"

    ./test-links.sh
else
# just let them know there's a way to do this before every push
    echo "export NEAR__CHECK_ALL_LINKS=1 to check all links before pushing"
    echo
fi

docs-1's People

Contributors

gagdiez avatar thisisjoshford avatar bucanero avatar behaviary avatar mikedotexe avatar janewang avatar amgando avatar benkurrek avatar ailisp avatar eriktrautman avatar idea404 avatar janedegtiareva avatar ilblackdragon avatar ckshei avatar anaisurlichs avatar maxhr avatar vgrichina avatar nxsyed avatar chadoh avatar volovyks avatar bowenwang1996 avatar dependabot[bot] avatar frankbraun avatar khorolets avatar nikurt avatar frol avatar doriancrutcher avatar evgenykuzyakov avatar mina86 avatar trevorjtclarke avatar

Watchers

 avatar

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.