diff --git a/docs/_config.yml b/docs/_config.yml index 395405fb6..e36a148e9 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -24,8 +24,8 @@ description: >- # this means to ignore newlines until "baseurl:" Documentation for the MPLLang/mpl repo, especially source-code documentation of the MPL compiler and run-time system. This is intended for the developers of MPL and anyone interested in contributing to the MPL project. -baseurl: "" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com +baseurl: "/mpl" # the subpath of your site, e.g. /blog +url: "https://mpllang.github.io" # the base hostname & protocol for your site, e.g. http://example.com # twitter_username: jekyllrb # github_username: jekyll diff --git a/docs/runtime-sys/mem-manage/objects.md b/docs/runtime-sys/mem-manage/objects.md index 292959dfc..5a4e5e142 100644 --- a/docs/runtime-sys/mem-manage/objects.md +++ b/docs/runtime-sys/mem-manage/objects.md @@ -19,7 +19,7 @@ Pointers to objects always point to the beginning of the payload. These pointers are known as "object pointers", and are identified by the C type [`objptr`](https://github.com/MPLLang/mpl/blob/5bcbcc1883a12edf0dd0f29bc46e65c2cc2ff65e/runtime/gc/objptr.h#L13) throughout `runtime/gc/`. -![General layout of any MPL heap object](/assets/heap-obj-model.png){:width="50%"} +![General layout of any MPL heap object]({{site.baseurl}}/assets/heap-obj-model.png){:width="50%"} ## Object Types @@ -28,7 +28,7 @@ sequence objects, and stack objects. (See `NORMAL_TAG`, `SEQUENCE_TAG`, and `STACK_TAG` in the definition of the enum [`GC_objectTypeTag`](https://github.com/MPLLang/mpl/blob/5bcbcc1883a12edf0dd0f29bc46e65c2cc2ff65e/runtime/gc/object.h#L19-L26).) The type of every object is recorded in its [header](header.html). -![Normal, sequence, and stack objects](/assets/heap-obj-types.png){:width="85%"} +![Normal, sequence, and stack objects]({{site.baseurl}}/assets/heap-obj-types.png){:width="85%"} * **Normal objects** are flexible: they may contain any number of fields, fixed at the time of allocation (and known at compile time). Each field contains