Coder Social home page Coder Social logo

Search documentation about nsubstitute HOT 5 CLOSED

nsubstitute avatar nsubstitute commented on May 17, 2024 1
Search documentation

from nsubstitute.

Comments (5)

dtchepak avatar dtchepak commented on May 17, 2024 1

Site updated to include search page. Am leaving it standalone rather than incorporated into the UI at the moment. If there's demand for it we can look at updating the UI design to include a search element. :)

from nsubstitute.

MNF avatar MNF commented on May 17, 2024

Any reason, why it is still not implemented? When I already have Nsubstitute documentation site https://nsubstitute.github.io opened and want to find some keyword, I had to open Google to search item on your site. It will be good to have search function on your docs site.

from nsubstitute.

dtchepak avatar dtchepak commented on May 17, 2024

@MNF No good reason. Thanks for reminding me of this. 👍

If you have any time free would you be able to take a look at this? The docs can be a bit tricky to work with (https://github.com/nsubstitute/NSubstitute/wiki/Working-with-documentation), but if you could post some HTML/CSS somewhere I'm happy to incorporate it into the templates from there. Otherwise I'll try to get this done when I'm next working on documentation changes.

from nsubstitute.

dtchepak avatar dtchepak commented on May 17, 2024

@MNF Can you give me some examples of keywords you've searched for?

I've been playing around with a Google Custom Search Engine but not sure how useful the results are for such a relatively small amount of content. (You can try it out here.) We may be better off with Lunr.js as described in posts like this, so we can exclude the navigation areas from the indexed page data.


For my reference, here's the sample post page I was trying out:

---
title: Search
layout: post
---
<script>
  (function() {
    var cx = '005697633880271604295:lw9srlgcpg8';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>

Also need some help on where to shove a search box into the site and a nice style for it from someone who isn't horrible at design. 😄

from nsubstitute.

MNF avatar MNF commented on May 17, 2024

 As examples of keywords, last time I wanted to find information about new Configure() extension , sometime in the past I wanted "Received() example".
Your Google Custom Search results looks good for me.

Quickly browsing Lunr.js documentation I noticed that they are working with JavaScript objects and do not parse/index html pages out of the box.

Sorry, but I am not good with UI design either.

from nsubstitute.

Related Issues (20)

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.