alephium / docs Goto Github PK
View Code? Open in Web Editor NEWEverything about Alephium
Home Page: https://docs.alephium.org
Everything about Alephium
Home Page: https://docs.alephium.org
Recommendation from @Chainrocker:
MkDocs-Material might be an alternative. It supports 60 languages and there's a way to run multiple languages simultaneously through a plugin.
https://squidfunk.github.io/mkdocs-material
https://squidfunk.github.io/mkdocs-material/discussions/2346
@mvaivre @nop33 when we have the bandwidth to pick up this discussion.
@Sakrecoer I'm thinking that we could improve the readability of the FAQ by having the different questions categories as sub-pages of the FAQ instead of having everything in one big pages.
What do you think ?
The entire dapps section can be removed since it's not ready for primetime; even the pages that appear done are definitely not compatible day-to-day with the evolution of things
Once it's ready
Issue filed to be sure it is tracked.
Developers are usually confused with dust amounts, maybe it's time to have a specific doc entry for the topic.
We need to educate our users on this.
Following a discussion on Slack, it seems that hosting our "wiki" (ie. documentation) at docs.alephium.org would make more sense.
Let's create an alias and a redirect from wiki.alephium.org to docs.alephium.org?
Failed to compile, error: Error: ENOENT: no such file or directory, scandir 'contracts'
node:child_process:946
throw err;
^
Error: Command failed: npx --yes ts-node --transpile-only /Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli_internal.ts compile
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at Object. (/Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 54205,
stdout: null,
stderr: null
}
Node.js v18.12.1
Loading alephium config file: /Users/benjaminlarkey/Desktop/Ergollamas-Alphpacas/alphpacas/alephium.config.ts
(node:1875) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ...
to show where the warning was created)
devnet is not live
node:child_process:946
throw err;
^
Error: Command failed: npx --yes ts-node --transpile-only /Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli_internal.ts compile
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at Object. (/Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 1870,
stdout: null,
stderr: null
}
Node.js v18.12.1
to reaffirm that the devnet is live I tried starting one and it said it was already live and it does not work. tried with and without --yes tags
Is there documentation for the user.config arguments? No matter what I do I can't get my computer to mine on my other computer. Is there a documentation for all the arguments I can use in user.config?
We need to redirect the endpoints of the old wiki to the new wiki.
Here CSV file with this pattern oldURL,newURL
#
deeplink wich might cause trouble depending on how the list is parsed:
https://wiki.alephium.org/Roadmap.html, https://wiki.alephium.org/5min-overview#roadmap
If this doesnt work, please use https://wiki.alephium.org/Roadmap.html, https://wiki.alephium.org/5min-overview
https://wiki.alephium.org/Introduction.html,https://wiki.alephium.org/
https://wiki.alephium.org/Frequently-Asked-Questions.html,https://wiki.alephium.org/frequently-asked-questions
https://wiki.alephium.org/Full-Node-Starter-Guide.html,https://wiki.alephium.org/full-node/Full-Node-Starter-Guide
https://wiki.alephium.org/Docker-Guide.html,https://wiki.alephium.org/full-node/Docker-Guide
https://wiki.alephium.org/Full-Node-More.html,https://wiki.alephium.org/full-node/Full-Node-More
https://wiki.alephium.org/Full-node-on-raspberry-pi.html,https://wiki.alephium.org/full-node/Full-node-on-raspberry-pi
https://wiki.alephium.org/Solo-Mining-Guide.html,https://wiki.alephium.org/mining/Solo-Mining-Guide
https://wiki.alephium.org/Pool-Mining-Guide.html,https://wiki.alephium.org/mining/Pool-Mining-Guide
https://wiki.alephium.org/Miner-Troubleshooting.html,https://wiki.alephium.org/mining/Miner-Troubleshooting
https://wiki.alephium.org/Alephium-Stratum.html,https://wiki.alephium.org/mining/Alephium-Stratum
https://wiki.alephium.org/Wallet-Guide.html,https://wiki.alephium.org/wallet/Wallet-Guide
https://wiki.alephium.org/Multisig-Guide.html,https://wiki.alephium.org/wallet/Multisig-Guide
https://wiki.alephium.org/Smart-Contract-Guide.html,https://wiki.alephium.org/smart-contract/Smart-Contract-Guide
https://wiki.alephium.org/Smart-Contract-More.html,https://wiki.alephium.org/smart-contract/Smart-Contract-More
https://wiki.alephium.org/Roadmap.html,https://wiki.alephium.org/5min-overview#roadmap
https://wiki.alephium.org/Testnet-Guide.html,https://wiki.alephium.org/testnet-and-devnet/Testnet-Guide
https://wiki.alephium.org/Devnet-Guide.html,https://wiki.alephium.org/testnet-and-devnet/Devnet-Guide
https://wiki.alephium.org/CPU-Miner-Guide.html,https://wiki.alephium.org/testnet-and-devnet/CPU-Miner-Guide
https://wiki.alephium.org/On-dust-outputs-and-state-explosion.html,https://wiki.alephium.org/misc/On-dust-outputs-and-state-explosion
https://wiki.alephium.org/Internationalization-and-Localization.html,https://wiki.alephium.org/misc/Internationalization-and-Localization
this might be a bug or just an inconvenience:
testnet snapshot https://archives.alephium.org/archives/testnet/full-node-data/_latest.txt returns a 404
while
mainnet snapshot https://archives.alephium.org/archives/mainnet/full-node-data/_latest.txt works fine
would be useful to have a snapshot of the testnet db available too
Requesting addition of the Nextpool mining pool to the list of currently known and active pools:
Website: https://nextpool.net/
Location: United States
Pool type: PPLNS
SSL option: enabled
API link: http://nextpool.net:4000/api/pools
If you need anything else, please LMK
To help users orient themselves in the wiki, we'd be happy to see a search function being added to the docusaurus.
There seem to be several different ways to go about it, but all of them requires involvement from a developer. The releavant docusaursu documentation is available here: https://docusaurus.io/docs/search
Thanks 🙌
possible glossary topics
To keep track of @nop33 proposal i put it here:
It is true that we are lacking a proper smart contracts guide. What we have is:
- A blank wiki page called Developing that leads to @lf94 s gist with very little info
- A wiki page called Technical guide with a fullnode that serves as a tutorial on creating and deploying a smart contract (for exchanging ALPH for tokens) on Alephium using the terminal
- A GitHub repo called voting-tutorial that serves as a tutorial on creating and deploying a dApp on Alephium using a frontend app (not terminal)
So, all we have is tutorials, no reference guides.Maybe we should:
- Rename the Technical guide with a fullnode wiki page to Smart contract tutorial
- Link the broken link to the Smart contract tutorial wiki page
- Create a new wiki page called Voting dApp tutorial (or mention it in the Smart contract tutorial page) and link to the GitHub repo: https://github.com/alephium/voting-tutorial
If/when this goes through, we need to remember to:
This can be edited in docusaurus.config.js
here
I followed the instructions to edit it and replaced it with our repo URL, but it seems something is missing or i misunderstood how it works.
Blog functionality in Docusaurus seems to be a plugin, but i'm not familiar enough with yarn/npm to figure out how to disable it. I could hide it from the menu, but feels like a dirty fix.
TL;DR Unless we hide the blog from the menu, Someone-else® will need to figure out how to disable the blog. 😅
benjaminlarkey@pop-os:~/Desktop/ContractsAlph/alephium-tutorial$ npx @alephium/cli@latest test
FAIL test/token.test.ts
● Test suite failed to run
test/token.test.ts:125:32 - error TS2339: Property 'contractId' does not exist on type 'DeployContractExecutionResult<ContractInstance>'.
125 const tokenId = deployed.contractId
~~~~~~~~~~
test/token.test.ts:126:37 - error TS2339: Property 'contractAddress' does not exist on type 'DeployContractExecutionResult<ContractInstance>'.
126 const tokenAddress = deployed.contractAddress
~~~~~~~~~~~~~~~
test/token.test.ts:127:23 - error TS2339: Property 'groupIndex' does not exist on type 'DeployContractExecutionResult<ContractInstance>'.
127 expect(deployed.groupIndex).toEqual(testGroup)
~~~~~~~~~~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.961 s
Ran all test suites.
node:child_process:960
throw err;
^
Error: Command failed: npx --yes ts-node --transpile-only /home/benjaminlarkey/Desktop/ContractsAlph/alephium-tutorial/node_modules/@alephium/cli/cli_internal.ts test
at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at Object. (/home/benjaminlarkey/Desktop/ContractsAlph/alephium-tutorial/node_modules/@alephium/cli/cli.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 52311,
stdout: null,
stderr: null
}
Node.js v19.9.0
why docusaurus and not Markdoc?
As we discussed today in the translations meeting, we agreed to move the docs project to a separate crowdin project with less languages supported for now until we find people we trust that can approve translations outside of the core team.
We should be able to generate the doc from openapi.json.
Since we are an open-source project, we are eligible to use Algolia! https://docusaurus.io/docs/search
Validation Error:
Module ts-jest in the transform option was not found.
is: /Users/benjaminlarkey/Desktop/Alephium/alephium-tutorial
Configuration Documentation:
https://jestjs.io/docs/configuration
node:child_process:946
throw err;
^
Error: Command failed: npx --yes ts-node --transpile-only /Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli_internal.ts test
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at Object. (/Users/benjaminlarkey/.npm/_npx/f1b120e1b513c04c/node_modules/@alephium/cli/cli.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 72789,
stdout: null,
stderr: null
}
Node.js v18.12.1
Error was near line 104 or "describe" the following command fixes it but is not mentioned in the guide. I had to do my own digging.
Command: npm i --save-dev @types/mocha
After discussing with @nop33 to understand how translations are managed by Docusaurus, I would like to suggest that we remove the French translation for now (it is very outdated) and until the documentation is more stable.
For reminder this is how it works:
To create a translation for a new page, one needs to copy the English file into the i18n/fr/docusaurus-plugin-content-docs/current/ folder and update the text to the new language.
If no-one create a translation for a page, when the user switches to the new language, they will see the English content instead.
Because it works at the page level and not the actual content level, once both English and new language files are created, and there is some new text added in the English one, there’s no way to know that the 2 files are not in sync anymore.
The only way to ensure proper maintenance of the translated pages would be that once someone changes something in the English files and makes a PR, we don’t merge that PR until we also have the other translations for it.
As we are currently working a lot on the documentation, I don't think this is a bottleneck we can manage right now. It's also a bit of a waste of community time to make them translate content that evolves so quickly.
It would be more efficient to wait until the documentation is more stable to accept translation, and then, we can enforce that EN PR modifying a page, need to have all translated languages updated as well.
I noticed this issue in the page "A primer with the desktop wallet" (see video)
Adding them here once confirmed: https://wiki.alephium.org/#our-partners
@MaudSimon Could you please add one, thanks!
Hi,
I am trying to translate alephium docs to Vietnamese version and regularly update my branches, but currently I have an issue that the folder i18n/vi
is not updated since new pushed changes. What should I do to sync new change from docs to my local i18n/vi
?
I wish you could recommend a hint.
Thank you so much!
I noticed a few differences between the new and old wikis:
@Sakrecoer I'll take care of points 1 and 3
As contributed by @ferdinandhodl in alephium/www#71
as reported by @MaudSimon: "overview", not "overiew"
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.