{"id":356,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=356"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"add-documentation-to-be-menu","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=356","title":{"rendered":"Add\n documentation to Be menu"},"content":{"rendered":"<p>Similar to the way you can add access to mounted disk volumes to the Be menu, you can also add quick access to Be&#8217;s provided documentation by typing:<br \/>\n<code>ln -s \/boot\/beos\/documentation ~\/config\/be<\/code><br \/>\nBut this means you also get all the empty files, pictures, and other cruft that lives under <code>\/boot\/beos\/documentation<\/code>. Here&#8217;s a script that will create appropriate documentation links, preserve the directory structure, and display only HTML documentation files in the Be menu.<\/p>\n<pre>\nDOC=\"Documentation\"\nIFS=\"\n\"\ncd ~\/config\/be\n[ -d ${DOC} ] &amp;&amp; rm -rf ${DOC}\nmkdir ${DOC}\ncd ${DOC}\nfor x in `find \/boot\/beos\/documentation ( -name \"*html\" -o -type d ) -print |\n sort -f | sed -e s\/\"\/boot\/beos\/documentation\/\"\/\/g`\ndo\necho \"linking to ${x}\"\n[ -d \/boot\/beos\/documentation\/${x} ] &amp;&amp; mkdir -p ${x}\n[ -f \/boot\/beos\/documentation\/${x} ] &amp;&amp; ln -s \"\/boot\/beos\/documentation\/${x}\"\n \".\/${x}\"\ndone\nrmdir `find . -type d -empty -print`\n<\/pre>\n<p>Hope this helps somebody out there. If you can tell me how to do this with a query, that would be great.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Similar to the way you can add access to mounted disk volumes to the Be menu, you can also add quick access to Be&#8217;s provided documentation by typing: ln -s \/boot\/beos\/documentation ~\/config\/be But this means you also get all the empty files, pictures, and other cruft that lives under \/boot\/beos\/documentation. Here&#8217;s a script that will [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[13],"class_list":["post-356","post","type-post","status-publish","format-standard","hentry","tag-tracker"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=356"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/356\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}