mratsim / Arraymancer

A fast, ergonomic and portable tensor library in Nim with a deep learning focus for CPU, GPU and embedded devices via OpenMP, Cuda and OpenCL backends
https://mratsim.github.io/Arraymancer/
Apache License 2.0
1.34k stars 96 forks source link

The website is unusable on mobile #534

Open xigoi opened 2 years ago

xigoi commented 2 years ago

Screenshot

The items on the right of the toolbar (Tutorial, etc.) are either covered by the GitHub badge (and can't be clicked) or completely off the screen.

(Note: I'm using Dark Reader, which explains the dark theme)

Vindaar commented 2 years ago

If anyone has some decent knowledge of CSS and could attempt to fix the mobile layout, that would be greatly appreciated.

If I understand it correctly, it should all be here:

https://github.com/mratsim/Arraymancer/blob/master/docs/nav.css

xigoi commented 2 years ago

I can try that. But when I enter nimble gen_docs, I get the following error:

  Executing task gen_docs in /home/xigoi/forks/Arraymancer/arraymancer.nimble
stack trace: (most recent call last)
/tmp/nimblecache-2893754277/nimscriptapi_3547287949.nim(187, 16)
/home/xigoi/forks/Arraymancer/arraymancer.nimble(282, 14) gen_docsTask
/home/xigoi/forks/Arraymancer/docs/docs.nim(156, 20) buildDocs
/home/xigoi/forks/Arraymancer/docs/docs.nim(44, 11) execAction
/home/xigoi/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim(38, 26) failedAssertImpl
/home/xigoi/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim(28, 11) raiseAssert
/home/xigoi/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim(53, 5) sysFatal
/home/xigoi/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim(53, 5) Error: unhandled exception: /home/xigoi/forks/Arraymancer/docs/docs.nim(44, 12) `ret == 0` Command failed: 1
cmd: /home/xigoi/.choosenim/toolchains/nim-1.6.0/bin/nim buildIndex -o:/tmp/nimblecache-2893754277/arraymancer_2972872318/docs/build/theindex.html /tmp/nimblecache-2893754277/arraymancer_2972872318/docs/build
result:
oserr.nim(95)            raiseOSError
Error: unhandled exception: No such file or directory
Additional info: /tmp/nimblecache-2893754277/arraymancer_2972872318/docs [OSError] [AssertionDefect]
     Error: Exception raised during nimble script execution
mratsim commented 2 years ago

Known issue: https://github.com/mratsim/Arraymancer/issues/169

I'm open to anything, ideally we have better doc generator like what @haxscramper has been working on (https://github.com/haxscramper/haxdoc) or Sphinx integration.