Code Monkey home page Code Monkey logo

docbase's Issues

Upgrade phantom-js dependency

It's no longer possible to get the binary of phantom-js v0.7.2. It should be upgraded to 2.x+ in grunt-docbase project.

Sidebar highlight doesn't work for html mode.

The code snippet below is responsible for showing the active section in the sidebar during a doc navigation. It's present in the SPA mode, but when grunt converts the page to html mode. We need to execute the following script on each page for highlighting to work:

var $window = $(window);
    var $document = $(document);
    $document.on('ready', function() {
      $("h2, h3").scrollagent(function(cid, pid, currentElement, previousElement) {
        if (pid) {
         $("[pref='#"+pid+"']").removeClass('active');
        }
        if (cid) {
          $("[pref='#"+cid+"']").addClass('active');
        }
      });
    });

It's originally present in the flatdoc's theme file, but we miss adding the JS while converting to html mode - https://github.com/appbaseio/Docs/blob/master/bower_components/flatdoc/theme-white/script.js#L9

How to set up a local version for development?

I want to develop locally before deploying to github. However, I'm getting error while trying to set it up.

  1. I did yo docbase to generate the project locally.
  2. npm install to install dependencies.
  3. Did npm install -g grunt-cli and npm install -g bower as stated in docs.
  4. Run grunt

However, I'm getting the following error.

Loading "GruntFile.js" tasks...ERROR
>> TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.

Erro generating page: build_html/index.html

When I perform the following steps I get an error in the console and a blank page is displayed when I hit the local site. Can't figure out if this is an issue with the product or not.

*) yo docbase
*) when prompted
*) For hosted option select 'Magic'
*) For publish option select 'Locally'
*) For color option select 'green'

...stuff is printed to console

Running "docbase:def" (docbase) task
starting
Erro generating page: build_html/index.html

Authentication for documenting private projects

How hard would it be to add a basic authentication layer? (ie: for documenting private git-hub projects on a GitHub pages site)

I realise the published documentation content/back-end files could still be accessed by an unauthenticated user by guessing their URLs, but a simple authentication mechanism on the front-end SPA would be sufficiently-secure for many private projects.

Ideally, authentication linked to GitHub would be awesome if it allowed access to the published documentation based on a user's permission to access the underlying documentation's GitHub repo.

(This is something I would be interested in contributing to, since most documentation systems are focused on public vs private documentation, and I'm still looking for a GitHub-centric alternative for documenting our team's private projects. )

Regards, Michael

UI changes

  • remove margin-right from strong title
  • apply padding only for code immediate after strong
  • first element p tag -> strong : make it title
  • remove style.css from generator
  • Strong title color changes to #999

Custom frontpage having issues while building for production

I want to set up a completely custom html page as a front page. I set indexHtml in docbaseConfig as ./html/custompage.html.

It is working fine in local machine. The front page is custom and the docs are in the default layout. However, when I push the changes, it timeout in travis ci.

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

After going through grunt-docbase code, I added a #navbar-collapse and .map_folder for checkLoadedSelector and checkNavbar checks.

I also tried setting manual_override to true.

What am I missing. What is the correct way to set a custom front page?

Support html files

Would you consider supporting html in addition to markdown? This would make it easy to convert (or scrape) existing documentation sites for publishing using docbase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.