GithubHelp home page GithubHelp logo

gerby-website's People

Contributors

aisejohan avatar chngr avatar dkrashen avatar iblech avatar patrickmassot avatar pbelmans avatar takumim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gerby-website's Issues

Check Chrome behaviour on smartphone

When checking things in Chrome's "different devices" option I get behaviour similar to [https://physics.meta.stackexchange.com/questions/9843/problem-in-viewing-mathjax-formatted-writing-in-smartphone](this MathJax problem). As I cannot check with an actual smartphone, I cannot check whether this problem is there on an actual device. I'm putting it here as an issue to remind myself to check this.

Benchmark

We should do benchmarks, and see whether there are certain bottlenecks.

Names of contributors

It kind of would be fun if we could ask contributors for latex expressions for their names, e.g., for chinese names using characters 李时璋 or 李時璋 for my student Shizhang Li. Maybe this should be an issue for stacks/stacks-project instead?

Collapsing not remembered

On the table of contents page I would (personally) like to have it collapsed. Is there a way to remember that I collapsed it?

Reflow of layout

Using my iPad, on tag 0BEL (for which I have a special affinity given my last name), MathJax is reflowing the page, causing the layout to become narrower. Hence the top bar isn't 100% anymore.

Testing such a thing is extremely annoying, and we need more test cases (and more devices).

JavaScript insertion

Yesterday I was showing Jacob what JavaScript insertion means, and that it shouldn't be possible. Turns out it was possible. Somewhere I'm messing up, and I need to fix this.

Layout is broken with MathJax error

Consider tag 00P7 of Higher Topos Theory. The MathJax error (which of course we shouldn't have) gives a reflow of the layout, forcing the sidebar to the bottom.

Treeview navigation in sidebar

We should try to implement a treeview sidebar as in a good pdf viewer. Actually, a good source for inspiration might be the Dash documentation viewer.

Add inline and display math buttons to comment editor

It would be nice to have these. The icon for inline could be fa-usd by the way, for display mode I haven't found a good symbol yet.

The problem I have is that I cannot define a method like drawTable, as some of the necessary methods are hidden.

Print stylesheet in Firefox

In Chrome it seems to be working fine. In Firefox (where I preview things by using "Open PDF in Preview" on my Mac) the following seem to be wrong:

  • the breadcrumb is looking very sad because it's alone on the first page
  • the second page is fine, but everything that should go on the next pages is cut off, with an empty thir page to make up for it

Statistics

We would like to have a line count for the Stacks project, but given that Gerby never sees the LaTeX code we don't have that straight away now. We could sum up the number of HTML lines, but that feels like a crude approximation.

We also need a page count. Again, not easily accessible from Gerby right now.

eqnarray isn't handled properly

There is an issue with tag 01LR (also on the current website actually):

  • it isn't numbered (also not on the section page 01LQ)
  • it is described as eqnarray on tag 01LE, which is not really pretty

This is probably plasTeX-related too.

Implement chapter redirect

I made the mistake of allowing URL's of the form /chapter/55. These should redirect (or maybe display a warning?) when accessed in the new website.

Sorting with appendices

Right now there is a __gt__ method for the Tag model in Peewee. But it fails for appendices, as it cannot convert strings to integers.

Issues with comments

I just tested all the existing comments in the new comments system. Scrolling through, I noticed the following issues (which are not supposed to be fixed by our code):

  • turn all \ref{label} into \ref{tag} on 112 (00DC), 394 (00DE, 0038), 459 (00DV), 672 (0052), 1163 (02OK), 1912 (0A30), 3002 (0101)
  • comment 176 has an escaped underscore: just make it mathematics
  • comment 2177 has escaping gone wrong, remove it
  • comments 240, 657 and 1977 have <i> and <b>, turn this into Markdown markup
  • typos and other things
    • \mathrak on 686
    • \codts on 3012
    • comment 1504 is copy-pasted TeX code

Statistics page

We could also use a dedicated statistics page, so that the Statistics pane on the front page would actually link to something. Besides the obvious statistics, we could have things like

  • most complex tag
  • most used tag
  • most commented tag
  • ...

Make a toggle between numbering and tags

People keep on referring to numbers in comments, which makes perfect sense, as the only way to read off the tag of a lemma inside a section is by hovering over the link. When writing a comment (and possibly somewhere else, maybe even keep track of their preferences using a cookie) we can let them toggle between these.

Solution: just enclose the number in a <span> which contains the tag as a data-tag attribute. Then in JavaScript we can toggle between these two pieces of information in a completely uniform way.

Redo sloganerator

With the new website setup, it will be hard to have the sloganerator integrated in the same way we do now. Given that all the logic and layout has been done already, we could easily port it to Python.

This has very low priority though, we can do without it as no-one really uses it.

Fix list items in preview

Because jquery-bonsai changes the way all list items look, the preview of a search result is borked. I played around for a few minutes, but I couldn't figure out a good solution straightaway. Maybe we should decorate all list items on which Bonsai is supposed to act or something?

Give a list of changed tags in a commit

Currently the sidebar gives just the commits, but with the information in the database it is possible to say which tags were actually altered (provided an update has happened). In the new website, we could try to say which tags were updated inside a particular commit displayed in the sidebar.

Experiment with Flask inside Apache

Eventually we will run Flask inside Apache (at least for the Stacks project). We should run it that way on the test server, to get familiar with the setup.

Separate database for comments

As the Stacks project maintainer, I think it makes sense to have one database for the mathematical content of the site and a separate one for the comments. Namely, everything in the database except for the comments is currently generated by scripts acting on the Stacks project. Splitting the database into two databases would mean that if we update the Stacks project we can run all the update scripts locally and then simply copy over the database to the live server without touching the comments database.

Local version of the website

It should be easy to run a local version of the website, by just running a download script for all the external code.

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.