Commit Graph

173 Commits

Author SHA1 Message Date
Kaushal Modi
d1114d0995 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.

(cherry picked from commit c6dfbfc2cf)
2018-11-01 17:28:15 +01: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
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
mfxmfx
88f95a2f7e nim.cfg: update comments about the stack size to match reality (#5206) 2017-01-11 05:23:38 +01:00
Araq
3a4ec7f101 use dwarf-3 debug information on Windows/GCC for compat with older GDBs 2016-12-16 22:02:49 +01:00
Fredrik Høisæther Rasch
a13e2bd5ec Prevent concurrency issues on the PDB file by using /FS option 2016-10-25 21:36:47 +02:00
Fredrik Høisæther Rasch
d94bb4a0e1 options.linker made platform specific
previous options.linker.always is not supported in nim.cfg
Removed /Fd\"$projectName.pdb\" (Implied by /Zi)
2016-10-25 21:17:18 +02:00
Fredrik Høisæther Rasch
febb551f7a corrected --platform arg for amd64 (VCC) 2016-10-25 21:08:23 +02:00
Fredrik Høisæther Rasch
1af0ac9d2c vccwrapper with nim-like command line args 2016-10-25 19:19:58 +02:00
Fredrik Høisæther Rasch
3b1c5183df config: corrected vcc wrapper arguments to right syntax 2016-10-25 18:07:31 +02:00
Fredrik Høisæther Rasch
7b1f948b72 Nim.cfg: Arch option dependent on target platform 2016-10-25 10:59:43 +02:00
Fredrik Høisæther Rasch
e99f35ff23 VCC wrappers with vcvars args.
VCC wrappers no longer wrap for compile-time specific target
VCC wrappers now peek into the command line args and evaluate vcvars prefixed arguments
2016-10-25 01:49:18 +02:00
Araq
42b64e3257 minor CSS improvement 2016-10-01 00:02:34 +02:00
Zoltán Mizsei
3813af63f5 Haiku supporting code in nim.cfg. We don't have -ldl. 2016-09-25 14:40:30 +02:00
cheatfate
4e183dc106 RPATH locations for OpenBSD,NetBSD and FreeBSD. 2016-09-21 03:55:07 +03:00
Araq
3dfc866710 docgen: working search feature 2016-09-09 20:42:02 +02:00
Andreas Rumpf
0a2cc05541 docgen: minor changes 2016-09-09 16:55:20 +02:00
Andreas Rumpf
7621bb05c9 docgen: search feature 2016-09-09 16:25:09 +02:00
Araq
37c3c0033d generated theindex.html is valid html 2016-09-09 16:16:58 +02:00