Skip to content

Commit

Permalink
fix: github actions (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez authored Feb 9, 2024
1 parent 9cffe85 commit ca46bbf
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:
merge_job:
runs-on: ubuntu-latest
concurrency:
group: build-docs
cancel-in-progress: true

permissions:
contents: write

Expand Down
22 changes: 10 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,29 +101,27 @@ Welcome, this is the starting point for all NEAR documentation. Learn to build a
<Feature url="/concepts/basics/accounts/account-id" title="Named Accounts" subtitle="NEAR uses human-readable accounts" image="user.png" />
<Feature url="/concepts/basics/accounts/access-keys" title="Multiple Access Keys" subtitle="More keys means more security" image="key.png" />
<Feature url="/concepts/basics/accounts/smartcontract" title="Smart Contracts" subtitle="Learn about our contract technology" image="contract.png" />
<Feature url="/concepts/basics/tokens" title="Token" subtitle="Learn about the NEAR token" image="ft.png" />
<Feature url="/concepts/basics/transactions/overview" title="Transactions" subtitle="Fast and Inexpensive" image="transaction.png" />
<Feature url="/concepts/basics/validators" title="Validators" subtitle="Learn how the network stays safe" image="validation.png" />
</Column>
<Column title="Developer Docs" size="3">
<Feature url="/develop/integrate/quickstart-frontend" title="Quickstart: WebApp" subtitle="Spin-up your first dApp" image="quickstart.png" />
<Feature url="/develop/contracts/quickstart" title="Quickstart: Contract" subtitle="Learn how to write smart contracts" image="smartcontract.png" />
<Feature url="/develop/monitor" title="Monitor your App" subtitle="Learn how to track the Blockchain" image="monitor.png" />
<Feature url="/tutorials/welcome" title="Tutorials & Examples" subtitle="Check out a vast library of examples" image="tutorials.png" />
<Feature url="/develop/contracts/quickstart" title="Quickstart: Contract"
subtitle="Learn how to write smart contracts" image="smartcontract.png" />
<Feature url="/bos/tutorial/quickstart" title="Multi-chain Components"
subtitle="Learn about multi-chain components" image="bos-lido.png" />
<Feature url="/bos/queryapi/intro" title="QueryAPI" subtitle="The simplest way to build indexers" image="blocks.png" />
</Column>
<Column title="Developer Tools" size="3">
<Feature url="/sdk/js/introduction" title="JavaScript SDK" subtitle="Write contracts in JavaScript" image="smartcontract-js.png" />
<Feature url="/sdk/rust/introduction" title="Rust SDK" subtitle="Write contracts in Rust" image="smartcontract-rust.png" />
<Feature url="/tools/near-cli" title="NEAR CLI" subtitle="Use NEAR from the Terminal" image="near-cli.png" />
<Feature url="/tools/near-api-js/quick-reference" title="NEAR API JS" subtitle="Interact with NEAR from JS" image="near-api-js.png" />
<Feature url="/api/rpc/introduction" title="RPC API" subtitle="Interact with the NEAR RPC API" image="rpc.png" />
<Feature url="/concepts/advanced/indexers" title="Indexing blockchain data" subtitle="Query usage information for a contract" image="blocks.png" />
</Column>
<Column title="Examples & Tutorials" size="3">
<Feature url="/develop/relevant-contracts/ft" title="Fungible Tokens" subtitle="Learn how to use and make FT" image="ft.png" />
<Feature url="/develop/relevant-contracts/nft" title="Non-Fungible Tokens" subtitle="Enter the NFT space" image="nft.png" />
<Feature url="/develop/relevant-contracts/dao" title="Autonomous Organizations" subtitle="Understand DAOs" image="dao.png" />
<Feature url="/tutorials/indexer/near-lake-state-changes-indexer" title="Lake Indexer" subtitle="Watch the network and access all the events" image="experiment.png" />
<Feature url="/tutorials/examples/donation" title="Donation" subtitle="Receive and send tokens" image="donation.png" />
<Feature url="/tutorials/examples/factory" title="Factory Contract" subtitle="Build a contract that deploys contracts" image="factory.png" />
<Feature url="/tutorials/examples/frontend-multiple-contracts" title="Multi-Contract Frontend" subtitle="Interact with multiple contracts" image="multiple.png" />
<Feature url="/tutorials/nfts/js/introduction" title="Master NFTs on NEAR (JS)" subtitle="Learn everything about NFT in JS" image="nft-marketplace-js.png" />
</Column>
</FeatureList>

Expand All @@ -136,7 +134,7 @@ Here are more sources from our ecosystem that can help you to learn more about N
<div className="container">
<div className="row cards">
<div className="col col--6">
<a href="https://awesomenear.com">
<a href="https://near.org/applications">
<div className="card">
<div className="card__image">
<img src={require("@site/static/docs/assets/welcome-pages/awesomenear.jpg").default} alt="Discover" />
Expand Down
30 changes: 25 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ const config = {
label: 'Tutorials',
position: 'left',
},
{
href: '/api/rpc/introduction',
label: 'RPC',
},
{
type: 'html',
value: '<span class="separator"></span>'
},
{
type: 'dropdown',
label: 'Tools',
Expand Down Expand Up @@ -147,15 +155,27 @@ const config = {
{ label: "BOS Web IDE (Jutsu)", href: "https://jutsu.ai/editor" },
{ label: "Remix IDE Plugin", href: "https://docs.welldonestudio.io/code/getting-started" },],
},
{
href: '/api/rpc/introduction',
label: 'RPC',
},
{
type: 'dropdown',
label: 'Other Docs',
label: 'Resources',
position: 'left',
items: [
{
type: "html",
value: '<div class="subtitle"> Support </dib>',
},
{
href: 'https://discord.gg/GZ7735Xjce',
label: 'Discord',
},
{
href: 'https://t.me/neardev',
label: 'Telegram',
},
{
type: "html",
value: '<hr /><div class="subtitle"> Other Docs </dib>',
},
{
href: 'https://nomicon.io',
label: 'Protocol Docs',
Expand Down
8 changes: 8 additions & 0 deletions website/src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ img+em,
color: #999;
}

.navbar .separator {
border: 1px #999 solid;
}

/* fonts and headers */
h1,
h2,
Expand Down Expand Up @@ -374,6 +378,10 @@ iframe+em {
.navbar__search-input {
width: 9rem
}

.navbar .separator {
display: none;
}
}

@media (max-width: 996px) {
Expand Down

0 comments on commit ca46bbf

Please sign in to comment.