# DocumentJS

**URL:** https://forums.bitovi.com/c/documentjs/10.md

[Latest](https://forums.bitovi.com/latest.md) · [Categories](https://forums.bitovi.com/categories.md) · [Tags](https://forums.bitovi.com/tags.md)

---

## [About the DocumentJS category](https://forums.bitovi.com/t/about-the-documentjs-category/39)

<div class="topic-metadata">

**Author:** [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Replies:** 0

</div>

Discuss DocumentJS, DoneJS’s documentation library. File bugs and feature requests on GitHub. Want to chat? Join our Slack!

---

## [Stylesheet parents are not working as expected in DocumentCss](https://forums.bitovi.com/t/stylesheet-parents-are-not-working-as-expected-in-documentcss/1072)

<div class="topic-metadata">

**Author:** [@cbecker-tc](https://forums.bitovi.com/u/cbecker-tc)\
**Replies:** 0\
**Last updated:** [May 29, 2019, 4:47pm UTC](https://forums.bitovi.com/t/stylesheet-parents-are-not-working-as-expected-in-documentcss/1072 "2019-05-29T16:47:26Z")

</div>

I’m trying to set up my site’s documentcss styleguide but I’m having trouble with stylesheets and parents. My understanding from the documentation is that if I set a stylesheet to have a parent, that stylesheet should sh…

---

## [Generic property names confuse the beginner](https://forums.bitovi.com/t/generic-property-names-confuse-the-beginner/908)

<div class="topic-metadata">

**Author:** [@code-read](https://forums.bitovi.com/u/code-read)\
**Replies:** 2\
**Last updated:** [June 29, 2018, 7:01pm UTC](https://forums.bitovi.com/t/generic-property-names-confuse-the-beginner/908 "2018-06-29T19:01:29Z")

</div>

This may seem trivial, but I keep getting confused by passages in the documentation where properties are named with the generic term for the property they represent. Here are some examples: At https://canjs.github.io…

---

## [can.Component.extend() vs. other approaches](https://forums.bitovi.com/t/can-component-extend-vs-other-approaches/921)

<div class="topic-metadata">

**Author:** [@code-read](https://forums.bitovi.com/u/code-read)\
**Replies:** 3\
**Last updated:** [June 29, 2018, 5:31pm UTC](https://forums.bitovi.com/t/can-component-extend-vs-other-approaches/921 "2018-06-29T17:31:55Z")

</div>

In the documentation I see different recipes and code examples implemented using: can.Component.extend() can.DefineMap.extend() Both of the above combined \<script type="text/stache"\> combined with can.DefineM…

---

## [ViewModel API example confusing; unify HTML + JS via \<script\>?](https://forums.bitovi.com/t/viewmodel-api-example-confusing-unify-html-js-via-script/909)

<div class="topic-metadata">

**Author:** [@code-read](https://forums.bitovi.com/u/code-read)\
**Replies:** 2\
**Last updated:** [June 11, 2018, 6:18pm UTC](https://forums.bitovi.com/t/viewmodel-api-example-confusing-unify-html-js-via-script/909 "2018-06-11T18:18:47Z")

</div>

Here is a screenshot of https://canjs.github.io/next/doc/can-component.prototype.ViewModel.html#CallingmethodsonViewModelfromeventswithintheview. I like that a working example is provided, but find it hard to follow bec…

---

## [Why is \[can-component/content\] in component.md invisible in can-component.html?](https://forums.bitovi.com/t/why-is-can-component-content-in-component-md-invisible-in-can-component-html/902)

<div class="topic-metadata">

**Author:** [@code-read](https://forums.bitovi.com/u/code-read)\
**Replies:** 4\
**Last updated:** [June 4, 2018, 4:00pm UTC](https://forums.bitovi.com/t/why-is-can-component-content-in-component-md-invisible-in-can-component-html/902 "2018-06-04T16:00:33Z")

</div>

In reading can-component.html I noticed the sentence, Use the tag to position the custom element’s source HTML. the tag seemed ambiguous here; I decided it must refer to the \<content\> tag. So I located the source fi…

---

## [Are there any examples on using DocumentJS with components, viewModels, and the define plugin?](https://forums.bitovi.com/t/are-there-any-examples-on-using-documentjs-with-components-viewmodels-and-the-define-plugin/177)

<div class="topic-metadata">

**Author:** [@roemhildtg](https://forums.bitovi.com/u/roemhildtg)\
**Replies:** 2\
**Last updated:** [April 11, 2016, 1:17am UTC](https://forums.bitovi.com/t/are-there-any-examples-on-using-documentjs-with-components-viewmodels-and-the-define-plugin/177 "2016-04-11T01:17:58Z")

</div>

I''ve been playing around with DocumentJS and using it to document components. I've figured that you can use the @prototype tag for methods on the component viewModel, but I'm not really sure of the best way to docume…
