Commit Graph

189 Commits

Author SHA1 Message Date
Miran
bba3a20e7c documentation style tweaks (#10790)
* exports are the least important field in the docs:
  they are put in the last place (at the bottom)
* indent text after proc/type declaration for an easier navigation
  (noticeable difference between declarations and examples)
* quickfix invalid style in `asynchttpserver`
2019-03-08 13:55:26 +01:00
Tomohiro
df3d08b58b Fixes #10387 (#10743) 2019-03-04 12:15:07 +01:00
narimiran
a0fb77dfd5 add links to every document, fixes #5515 2019-02-16 18:26:28 +00:00
narimiran
21b256dbc9 fix documentation CSS
- make documentation usable on small (narrow) screens
- slightly smaller font size in tables
- fix search input width
2019-02-05 14:01:47 +01:00
Miran
8cb80238c4 update documentation CSS (#10543)
* update documentation CSS
* update the expected htmls
2019-02-04 12:27:02 +01:00
Emery Hemingway
15422a3e5a Genode fixes (#10491)
Readline pasthru, add linker to config, do not pass -lm to linker.
2019-01-29 15:08:43 +01:00
narimiran
96a8caa9ef fix documentation css 2019-01-28 10:58:24 +01:00
alaviss
ca0ef62c9e config/nim.cfg: disable tlsEmulation on Haiku (#10092) [backport]
As of hrev52662, TLS support in Haiku is usable again. This has since
been backported to R1/Beta1, so we can flip the switch upstream.
2018-12-27 22:27:23 +01:00
Neelesh Chandola
642ce799ec Add support for clang-cl (#9977) 2018-12-19 09:35:25 +01:00
Araq
86c3ac6a61 see what breaks with a global config.nims 2018-12-16 20:53:50 +01:00
Neelesh Chandola
303ef57b15 Fix clang not producing debug info in cpp mode (#9976)
* Fix clang on windows to produce debug info

* Fix clang not producing debug info in cpp mode
2018-12-16 09:08:31 +01:00
Araq
0ab1229c69 resolve merge conflicts 2018-12-12 18:16:53 +01:00
genotrance
8500076651 Make Windows cross-compilation simpler (#9485) 2018-10-24 13:12:08 +02:00
Kaushal Modi
c6dfbfc2cf Do not encode the anchors in docs (id attr in a tags) (#9261)
Update the tests too.

Fixes https://github.com/nim-lang/Nim/issues/9232.
2018-10-09 20:48:00 +02:00
Kaushal Modi
2e5c759736 Make "koch docs" copy the dochack.js to the right location too
- Fixes https://github.com/nim-lang/Nim/issues/9104.
- Fixes https://github.com/nim-lang/Nim/issues/9095.

Expect dochack.js to be fetched from the doc/html/ dir instead of from
doc/.

Also remove an unused and unexported proc pathPart.
2018-09-29 13:15:29 -04:00
Kaushal Modi
de8cb0a1cf Encode non-alphanum chars like %, + in URLs in the docs
Use $itemSymOrIDEnc instead of $itemSymOrID in the id and href attr in
a tags.

Fixes https://github.com/nim-lang/Nim/issues/9097.

Thanks to @LemonBoy for helping with this commit.

---

Update the tests too -- "nim c -r nimdoc/tester" passes.
2018-09-28 13:52:54 -04:00
Emery Hemingway
2da0341b4d Genode fixes (#8501)
* Genode fixes

- wrap strings in "Genode::Cstring" when logging
- define SIGABRT for Genode
- disable GCC -fstack-protector
- use log RPC for fatal messages
- add --os:genode build to appveyor
- define paramStr and paramCount

* Select fixups for Genode POSIX
2018-08-16 18:12:37 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* posix_other: Haiku now has spawn.h

This is added per https://dev.haiku-os.org/ticket/13446

* posix_other: Add Haiku specific Dirent members

* cpuinfo: Add an implementation for Haiku

* distros: Add basic Haiku support

* encodings: update Haiku support

* fenv, math: Haiku now provides libm

* times: Add Haiku struct members

* ansi_c, osalloc: Add Haiku constants

* threads: Add Haiku support

* testament: Haiku uses LIBRARY_PATH

* nim.cfg: Update Haiku support

libnetwork should only be linked if network functions are used

* threads: Haiku does not support -pthread switch

* tworkingdir: Haiku's env is in /bin

* posix_other: add SIGKILLTHR for Haiku

* sockets: link with libnetwork on Haiku

* coro: correct ucontext.h location

http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html

* coro: ucontext backend is not available on Haiku

Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX

* coro: fix setjmp backend

The compiler does not allow statements after a noreturn function

* nativesockets: Haiku doesn't support AI_V4MAPPED

* system: hostOS can contains "haiku"

* os: add support for Haiku's packagefs

packagefs is read-only, but there are writable holes to the underlying
file system as well

* os: update constant for Haiku
2018-08-14 09:35:07 +02:00
Timothee Cour
c0f78ec012 fixes #8419 fixes #8420 ; workaround #6071 workaround nim-lang/website#98 (#8423)
add --git.devel option to override doc generated "edit" links; add --nimCompiler option to nimweb
2018-07-30 14:02:18 +02:00
Quelklef
f2b6efb7dc Make pragmas look clickable in docs (#8176)
* Visual cues for hidden pragmas in docs.
* Add hover cue
2018-07-17 12:14:31 +02:00
Joey
ab840f445e Remove cross-platform breaking env var in Nintendo Switch config
This was bad to put in here, so my bad. It doesn't work on anything except platforms with shell support. Users can use `--passC` and `--passL` options for customization.
2018-07-15 10:54:50 +09:00
Joey
559a7615ad Nintendo switch support (#8069)
* Add config section for Nintendo Switch
* Add compiler configuration for Nintendo Switch and it's CPU
* Add specific lib code for Nintendo Switch
* Add GC support for Nintendo Switch
* Update changelog for Nintendo Switch
* Update changelog with more info about fixed paths
* Cleaned up GC memory management a bit
* Relocate docs for Switch
* Rename aarch64NoneElfGcc to nintendoSwitchGCC
* Remove armv8a57
* Fix installer.ini
* Reuse code in linux and amd64
* Add posix defs for nintendo switch
* Add more defined sections for nintendo switch
* Remove old comment
* Add what's not supported for Nintendo Switch docs
* Make nintendoswitch == posix
* Remove DEVKITPRO references from nim.cfg
* Make PR extccomp changes
* Remove Result type alias
* Add separate switch consts file
* Update docs for nintendo switch
* Fix travis errors with undefined consts and add correct wait.h procs
2018-06-27 12:35:09 +02:00
Emery Hemingway
5b176f14a2 Provide configuration for Genode toolchain 2018-05-18 16:52:08 +02:00
Ganesh Viswanathan
6ca8478548 Minor fixes to enable tcc 2018-05-14 11:40:59 +02:00
Simon Krauter
952084eeef Fix background-color in nimdoc.cfg
Don't assume, that the default background-color is white.
My default background-color is dark, which makes the documentation hardly readable: https://i.imgur.com/xN0UjWz.png
The reason is the transparency of the existing color (rgba(252, 248, 244, 0.45);) 
Fixed by removing the transparency.
2018-03-11 18:23:31 +01:00
Araq
a9974a33f1 more documentation fixes 2018-03-05 23:25:50 +01:00
Andreas Rumpf
1b760dcd66 fixes #5293 2018-03-05 19:46:13 +01:00
Araq
8572085cc7 fixes #7294; Nim doc search feature 2018-03-05 13:20:50 +01:00
Michał Zieliński
1a0f8fd4e6 Change default ARM compiler name
In most distros (Ubuntu, Debian, Arch Linux) the only available Linux ARM toolchain uses arm-linux-gnueabihf- prefix. That's also the correct compiler for cross-compiling code for Raspberry Pi, which is what most people will probably want.
2018-01-21 16:26:22 +01:00
jcosborn
399c5e38b7 don't make optNilCheck default to on for now (#7058)
* don't make optNilCheck default to on for now

* add conditional symbol nimHasNilChecks
2018-01-17 01:32:40 +01:00
Federico Ceratto
5fdc69dfbd Update docgen style (#6723)
Switch to Lato font for better readability
Make text darker
Make spacing between paragraph and pre block consistent
Fix search input box to prevent overlapping with text
2017-11-29 01:35:26 +01:00
Araq
d6d40a2d3c fixes the docgen configuration; refs #6780 2017-11-28 01:57:44 +01:00
Federico Ceratto
821a6ef4c2 Add links to documentation (#6780)
Related to #4219
2017-11-27 05:41:55 -05:00
Fredrik Høisæther Rasch
de97f381fa Fix path for sh on Android (#6661) 2017-11-03 21:09:01 +01:00
Fredrik Høisæther Rasch
eda9b303d2 VCC always creates debug symbols when not in release (#6397)
Use the `/Z7` option instead of `/Zi /FS` to store all debug info in the `.obj` file instead of a shared `.pdb` file
2017-11-01 14:48:46 +01:00
Andreas Rumpf
786f9315e3 android target: use clang 2017-08-30 20:44:40 +02:00
Andreas Rumpf
28da04c1f7 Android support: put Termux specific dependencies behind a -d:termux switch 2017-08-30 13:33:09 +02:00
Fredrik Høisæther Rasch
3ce8bec359 Nim Configuration cleanup for VCC (#6261) 2017-08-21 11:20:24 +02:00
Fredrik Høisæther Rasch
a71f780253 Added missing C++ options for VCC (#6195) 2017-08-08 12:06:48 +02:00
Fredrik Høisæther Rasch
c39e202976 Introduce first class support for Android (#5772) 2017-08-06 02:18:15 +02:00
Araq
91eba77b96 fixes #4763 2017-07-17 09:28:03 +02:00
Konstantin Molchanov
20f92616d2 Add meta tag to ensure that media queries are activated on mobile devices. 2017-04-20 11:06:59 +04:00
Andreas Rumpf
e8389dcb93 docgen: make whitespace around 'class=' more consistent 2017-04-12 15:05:28 +02:00
Zion
04ebe7be51 Make fonts load from https rather than http 2017-03-27 23:55:51 -07:00
Fredrik Høisæther Rasch
513b0fed4d vcvarsallpath explaination no longer needed with vccdiscover
This reverts commit 7c4911d
2017-03-21 12:18:32 +01:00
Fredrik Høisæther Rasch
86206b2533 Added explanatory comments about vccexe and its path argument in nim.cfg 2017-03-21 12:18:29 +01:00
Fredrik Høisæther Rasch
4002bdf873 Added missing VCC C++ options to nim.cfg 2017-03-21 12:17:09 +01:00
Araq
2e65b48b62 nim.cfg: happy new year 2017-02-07 00:49:12 +01:00
Axel Pahl
8071648129 revert nim.cfg to version before b26e6e3 (#5306)
... to enable building of koch on Linux again
2017-01-31 11:32:08 +01:00
Araq
b26e6e3589 fixes #5301 2017-01-30 19:01:03 +01:00