Skip to content

Commit

Permalink
Update go.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 18, 2024
1 parent 87fee1e commit 37849c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ function get_readme_content() {
let content = fs.readFileSync(__dirname + '/tokens.mdx', 'utf-8')
let branch_addr = process.env.GITHUB_SERVER_URL + '/' +
process.env.GITHUB_REPOSITORY + '/tree/' +
process.env.GITHUB_REF_NAME + '?tab=readme-ov-file#0'
process.env.GITHUB_REF_NAME + '?tab=readme-ov-file#'

console.log(branch_addr)

content += 'Level '
let n = 11
for (let i = 0; i < n; i++) {
num = i.toString()
if (num.length == 1) { num = '0' + num }
content += '[' + num + '](' + branch_addr + num + ')'
// content += '[' + num + '](https://github.com/nuoxoxo/snowcrash/tree/main?tab=readme-ov-file#0' + num + ')'
if (i < n - 1 ) { content += ' - ' }
Expand Down

0 comments on commit 37849c3

Please sign in to comment.